(no title)
negativegate | 5 years ago
There would probably be less GC pauses if the benchmark code wasn't doing things like
[...Array(this.count.value).keys()].forEach(...)
instead of a for loop.negativegate | 5 years ago
There would probably be less GC pauses if the benchmark code wasn't doing things like
[...Array(this.count.value).keys()].forEach(...)
instead of a for loop.
bartread|5 years ago
Functional code might look nice but often creates excess work for the GC and kills performance. We had a situation within the last week where a piece of code was blowing through 350MB of memory unnecessarily, and massively slowing down a heavy set of calculations, because of exactly this kind of issue.
johnfn|5 years ago
On the contrary, please do this. "productivity" and "readability" are important aspects to consider when writing code, especially if someone else is going to be reading it.
When you've identified a bottleneck, feel free to write the code in the bottleneck more performantly, if necessary. But please do not sacrifice readability across the entire codebase for a couple of hot loops.
Aeolun|5 years ago
gnykka|5 years ago
gnykka|5 years ago
ncr100|5 years ago