zlib: pass object size hint to V8
authorBen Noordhuis <info@bnoordhuis.nl>
Tue, 30 Oct 2012 13:40:50 +0000 (14:40 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Tue, 5 Feb 2013 21:26:03 +0000 (22:26 +0100)
commit6b99fd23237d30a269f35690920ed6a4ab75de1a
treee3c1ee6582f221cfdaed9bd3c0b30d3b2bc844cb
parent8d14668992f156d8ec9e5fa31ddd83987db081ea
zlib: pass object size hint to V8

Inform V8 that the zlib context object is tied to a large off-heap buffer.

This makes the GC run more often (in theory) and improves the accuracy of
--trace_external_memory.
src/node_zlib.cc