DescriptionDocuments with many lines overallocated pagination info.
There is an object LineFragmentationData that is used for pagination
that is created on demand. That object was created for normal documents
and cost roughly 32 bytes per line, adding up to 3-5 MB on a big text
document (5% of all memory usage).
Testcase: http://norvig.com/big.txt - 3-10 MB RAM savings.
I don't know what I'm doing but this patch prevents the allocation and
saves the memory.
BUG=353993
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170497
Patch Set 1 #
Total comments: 3
Patch Set 2 : Simplified condition #
Total comments: 2
Patch Set 3 : Rebased #Patch Set 4 : Skipped intermediate variable #Patch Set 5 : Removed intermediate variable #Messages
Total messages: 12 (0 generated)
|