top | item 24601010

(no title)

sudders | 5 years ago

This really is brilliant in its simplicity.

Not having to maintain complex data structures to keep track of property dependencies as opposed to using light weight integer comparison to track changes. I can imagine @tracked being many times faster than @computed

discuss

order

chriskrycho|5 years ago

It’s both faster out of the box and uses much, much less memory—which also makes it faster. As I note in the summary at the bottom of the post, because it provides no value-level caching out of the box, it does a great deal less work than the `@computed` system, and is about as cheap as it can be. But that also means you have the flexibility to layer in value-level caching when that’s the right tradeoff: something which is notoriously difficult to do (especially to do correctly) in a `@computed`-style system.