Bug 1252374 - Increase the chunk size of the displayListArena. r=roc.

It reduces the number of malloc/free calls and may reduce malloc heap
fragmentation.

--HG--
extra : rebase_source : 9ca0b27fc29181667be924116807186e8eb1c1fa
This commit is contained in:
Nicholas Nethercote 2016-03-01 16:48:31 +11:00
parent aeacac6551
commit 6cdef547b5

View File

@ -641,7 +641,7 @@ nsDisplayListBuilder::nsDisplayListBuilder(nsIFrame* aReferenceFrame,
mAsyncPanZoomEnabled(nsLayoutUtils::AsyncPanZoomEnabled(aReferenceFrame))
{
MOZ_COUNT_CTOR(nsDisplayListBuilder);
PL_InitArenaPool(&mPool, "displayListArena", 1024,
PL_InitArenaPool(&mPool, "displayListArena", 4096,
std::max(NS_ALIGNMENT_OF(void*),NS_ALIGNMENT_OF(double))-1);
nsPresContext* pc = aReferenceFrame->PresContext();