Closed Bug 1362880 Opened 9 years ago Closed 9 years ago

Reserve storage for 10 RowInfo objects in nsTableRowGroupFrame::CalculateRowBSizes()

Categories

(Core :: Layout: Tables, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

Details

Attachments

(1 file)

No description provided.
Assignee: nobody → ehsan
Comment on attachment 8865245 [details] [diff] [review] Reserve storage for 10 RowInfo objects in nsTableRowGroupFrame::CalculateRowBSizes() r=dbaron (although I'd suggest increasing to 16 or 32, perhaps?) I wish we had a way to do this with alloca(), though (conditional on numRows < 128 or similar)
Attachment #8865245 - Flags: review?(dbaron) → review+
Component: Layout → Layout: Tables
I don't know how to use _alloca() with nsTArray, but 32 sounds good! :-)
Pushed by eakhgari@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/ba4487376f2c Reserve storage for 10 RowInfo objects in nsTableRowGroupFrame::CalculateRowBSizes(); r=dbaron
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: