4 ms·
I found it correct: what the says is that we should focus first on the actual bottlenecks before we worry about other optimizations; not that we should just loo
by nudpiedo 11y ago
I found it correct: what the says is that we should focus first on the actual bottlenecks before we worry about other optimizations; not that we should just look to another side.
If your bottle neck is in that point (copy of data structures) then there are functional data structures as well. And if still your performance is so critical in that point you can use a mutable data structure which is thread safe, and separate data from code in the rest of your code having still a big chunk of functional code where it is easy to reason about.
- agentultra 11y agoI am referring to data-oriented design[0], not optimization: thinking about your data, access patterns, and transformations is not a premature optimization in the Knuth-ian sense. It's just plain, old engineering. It's not incorrect per-se, just misleading in my opinion. [0]http://dataorienteddesign.com/site.php http://dataorienteddesign.com/site.php