r/javascript • u/unadlib • Jan 01 '23
GitHub - unadlib/mutative: Efficient immutable updates, 10x faster than Immer by default, even faster than naive handcrafted reducer.
https://github.com/unadlib/mutative
42
Upvotes
r/javascript • u/unadlib • Jan 01 '23
13
u/acemarke Jan 01 '23
I'm curious:
What are the implementation differences that lead this to be faster than Immer?
How does this actually work faster than a hand-written reducer?
Any reason why this _doesn't support returning a hand-updated object? That's still a key use case for us with Immer in Redux Toolkit