Created attachment 288100 [details] [diff] [review] fix I'm seeing a lot of allocations from the nsVoidArray in nsDisplayList::OptimizeVisibility/nsDisplayList::FlattenTo that we can easily eliminate. After browing a bunch of pages the biggest display list array length I saw was 480 so 512 should be big enough for most things and prevent us from having to allocate in most cases.
Comment on attachment 288100 [details] [diff] [review] fix + nsDisplayItem* item = elements.ElementAt(i); + nsDisplayItem* belowItem = i < 1 ? nsnull : elements.ElementAt(i - 1); Should just use  instead of ElementAt.
Comment on attachment 288100 [details] [diff] [review] fix a+ for mem frag fix. Rockin!
Attachment #288100 - Flags: approval1.9? → approval1.9+
changed to using  instead of ElementAt and checked in.
Status: NEW → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.