Prepare for Ember adoption
chriskrycho opened this issue · 1 comments
chriskrycho commented
NullVoxPopuli commented
cross-posting from here: starbeamjs/starbeam#89
but, imo (ofc, but strong feelings), the current TrackedArray
implementation needs some performance improvements before being adopted by Ember.
it's already implemented in ember-data, here: https://github.com/emberjs/data/blob/main/packages/store/src/-private/record-arrays/identifier-array.ts
Also, we probably also need proper storage primitives, because all the storage primitives (right now) greatly thrash memory and cpu compared to if the storage primitives were non-polyfilled.
(build on top of tracked requires decorator + class + instance on top of the native tracked implementation), and doing that for every tracked value is a lot.