|
|
|
|
|
by nailer
833 days ago
|
|
I have heard bizarre statements backed up by benchmarks. Eg lodash uses recursion for faster string concatenation for _.repeat() and then proved it was faster. That said, performance hacks are often temporary: people get one benchmark, update their codebases for 'performance reasons', then the compiler updates and the code is filled with workarounds for an issue that doesn't exist anymore. There's lots of bad JS/TS using other styles because because ES2017 async/await was slow five years ago. |
|