DescriptionReuse ZoneList memory if possible.
Clear() is rather wasteful for ZoneLists, because it discards
all previously allocated memory, making it impossible to reuse
until the whole Zone is released. Better use Rewind(0) in this
case, which just resets the length to zero.
R=jarin@chromium.org
Committed: https://code.google.com/p/v8/source/detail?r=21545
Patch Set 1 #
Messages
Total messages: 3 (0 generated)
|