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.
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.