You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello: My team is considering moving to mutative from immer. We would like to know below:
Main difference in implementation of state production in mutative than immer, which causes mutative to be faster. For example, how does mutative handle deeply nested states, et al?
Test coverage for mutative.
Production ready date or when V1 would be released.
Mutative and Immer both implement mutable drafts based on Proxy, but Mutative utilizes a stack structure to collect draft instances, thereby gaining a significant advantage in performance. On the other hand, Immer utilizes a process of freezing states to mark them, and traverses these states during the finalization drafts process. And the differences aren't solely in performance, Mutative offers more features than Immer. For more details, you can refer to the README.
The test coverage for Mutative is 100%, and it passed all the Immer test cases.
Mutative v1 might be released next week, and I'm working hard to make that happen.
Thanks for your interest in Mutative!
Reacted by udas0674, David Mair Spiess, Andrew Blakey, zthxxx, yar2001, Artem Zakharchenko and awa-xima
Activity
unadlib commentedon Oct 28, 2023
hi @udas0674 ,
Thanks for your interest in Mutative!
udas0674 commentedon Oct 29, 2023
Thank you!
unadlib commentedon Dec 15, 2023
hi @udas0674 , we've released mutative 1.0. Feel free to use it.