You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found this problem when profiling our application code. attachEpoch comes up quite clearly as at the top suspect for slow down. Interestingly when I looked at setTimeZone the zone property is added via assignment and it's only the epoch property that is added via defineProperty. Is it possible to change attachEpoch to add epoch via assignment?
I found this problem when profiling our application code.
attachEpoch
comes up quite clearly as at the top suspect for slow down. Interestingly when I looked atsetTimeZone
thezone
property is added via assignment and it's only theepoch
property that is added viadefineProperty
. Is it possible to changeattachEpoch
to addepoch
via assignment?Adding property through assignment is 2 orders of magnitude faster (see https://jsperf.com/object-defineproperty-vs-assignment/3)
The text was updated successfully, but these errors were encountered: