Hacker News new | ask | show | jobs
by IgorPartola 5576 days ago
It is true that you won't see much benefit when doing only a few operations, but we were interested because we do perform many object accesses/writes a second.

My guess as to why the prototype getters/setters are slow is that the prototype list has to be traversed and this requires a bunch of lookups that are not necessary when dealing with direct properties of the object.