Re:Slimmer and faster JavaScript strings in Firefox
by pcwalton on Monday July 21, 2014 @09:47PM
(#8067075)
In general Firefox uses jemalloc, so shipping builds of SpiderMonkey do as well. However, individual JavaScript objects are allocated using a custom SpiderMonkey-specific allocator that uses fixed-size bins, knows about garbage collection information, and (as of this year) supports multiple generations. No production-quality JavaScript engine uses the C malloc interface for individual JS objects; you'd get killed in the benchmarks if you tried.
[ Parent
| on HN ]
There are no comments on this comment yet.