Better HN
topnewbestaskshowjobs
Log inSign up

gillespie

2 karma · joined Aug 29, 2012 (14y ago) · 3 submissions

Submissions

comment 14y ago · link · parent

I was thinking more that if you repeatedly access a property, regardless of where in the prototype chain it is, the optimiser would cache the value, so it would be equivalent to saving it in a local variable. If I'm not mistaken, this is a common feature in optimizing compilers. I don't know how aggressive the JIT js compilers are, however.

comment 14y ago · link · parent

Is this still true on modern browsers with optimising js engines? And if so, why?