montagejs / collections

This package contains JavaScript implementations of common data structures with idiomatic interfaces.
http://www.collectionsjs.com
Other
2.09k stars 185 forks source link

array-changes.js:117 _dispatchOwnPropertyChange #227

Open marchant opened 4 years ago

marchant commented 4 years ago

For each iteration, this.dispatchOwnPropertyChange(i, this[i]); keeps calling's PropertyChanges.prototype.getOwnPropertyChangeDescriptor, which navigates internal structure every time. Adding some caching to avoid doing that would help speed things up quite a bit.