Re:JavaScript Array.push is 945x faster than Array.concat
by skohan on Thursday May 23, 2019 @11:47AM
(#19992799)
I disagree that mutable code is inherently faster to write. Like any paradigm you can adopt, it probably feels that way igfyou start injecting immutability into an existing project, but sooner or later you settle into different design patterns which support it better, and it's not faster or slower to write. Probably faster to debug though.
[ Parent
| on HN ]
Re:JavaScript Array.push is 945x faster than Array.concat
by seanmcdirmid on Thursday May 23, 2019 @11:57AM
(#19992880)
Until hardware changes away from being an intrinsically imperative machines, immutable approaches will be slower simply because the hardware doesn’t really support that.
We saw FP hardware leading to performance boosts kind of happen with GPUs (pixel and vertex shaders are just transformers), but then they got back to imperative again with GPGPU.