4 ms·
You should compare a plain JavaScript object (use shallow or deep compare if you must) version against Vue. I'm sure Immutable is pretty well optimized, but yo
by underwater 10y ago
You should compare a plain JavaScript object (use shallow or deep compare if you must) version against Vue.
I'm sure Immutable is pretty well optimized, but you still have overhead from all those function calls and iterating through the array of keys manually.
- TheCoelacanth 10y agoExactly this. Immutable is for collections, e.g. maps, sets, lists. The objects in the example are just objects, they are not maps. Using Immutable is just a pointless complication.