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'm doing some profiling to debug high CPU usage and Object.defineProperties takes up rather a lot of execution time:
There's an interesting post here where someone tries to optimise very similar usage, an interesting quote being:
there [is] basically no truly efficient way to make properties nonenumerable
Would it be so terrible to remove the Object.definedProperties invocation here?
If we absolutely must have some sort of no-you-cannot-access-them-don't-even-think-about-it-the-sky-will-fall-on-our-heads-type protection for these fields could we switch to using private class fields instead?