3 ms·
The performance of JS in the presence of functional programming patterns is still utterly miserable, even if other FP environments do suffer from the consequenc
by kevingadd 13y ago
The performance of JS in the presence of functional programming patterns is still utterly miserable, even if other FP environments do suffer from the consequences of GC pressure. JS GC performs worse than the native runtimes I've used (.NET, the JVM) and you end up forced to create more GC pressure because JS has a miserable type system and poorly-factored primitives.
Function.prototype.bind creates unnecessary GC pressure and performs like garbage. It's not realistic to use in any scenario where you care about performance.