Kinja Technology
Kinja Technology

The Shape of Things to Come

Eddy Bruel from Mozilla was talking about how JavaScript objects are represented in SpiderMonkey, Mozilla's JavaScript engine. He described two basic data structures, shape trees and slot vectors they use to minimize memory usage. Also he described how property lookup works in SpiderMonkey, using a technique called inline caching. He showed how certain operations like definition and deletion of properties affect the memory footprint and the performance of your code.


Share This Story

Get our newsletter