DescriptionValueDeserializer: Pretenure objects while deserializing large objects.
json-parser does the same thing. This drastically reduces GC cost when
deserializing objects large enough that multiple collections are likely
(since it saves the effort to move them to the old generation, when we
know that the objects we create will persist at least until the deserializer
finishes).
The threshold was chosen to match json-parser.
This patch reduces deserialization time on a large blob of JSON-y data
by approximately 30%.
BUG=chromium:148757
Committed: https://crrev.com/66dbc77eaf6b7fdb15b395401d556d3af51758e4
Cr-Commit-Position: refs/heads/master@{#39396}
Patch Set 1 #Patch Set 2 : remove the anonymous namespace; it is superfluous here #
Messages
Total messages: 15 (10 generated)
|