Closed
Bug 1330226
Opened 7 years ago
Closed 7 years ago
BidiParagraphData is rather alloc heavy
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
RESOLVED
FIXED
mozilla53
Tracking | Status | |
---|---|---|
firefox53 | --- | fixed |
People
(Reporter: smaug, Assigned: smaug)
References
Details
Attachments
(1 file, 1 obsolete file)
3.07 KB,
patch
|
jfkthame
:
review+
|
Details | Diff | Splinter Review |
Not sure if the patch goes too far. https://treeherder.mozilla.org/#/jobs?repo=try&revision=160c1ef6949cdfda1c14c25aff350ce346aaac79
Assignee | ||
Updated•7 years ago
|
Attachment #8825671 -
Flags: review?(dholbert)
Assignee | ||
Comment 1•7 years ago
|
||
Attachment #8825671 -
Attachment is obsolete: true
Attachment #8825671 -
Flags: review?(dholbert)
Attachment #8825674 -
Flags: review?(dholbert)
Comment 2•7 years ago
|
||
Comment on attachment 8825674 [details] [diff] [review] bidi_less_malloc.diff This looks OK to me, but it's really more in jfkthame's wheelhouse -- punting to him. (The one thing I'm less sure about here is whether 16 might be too large for the two newly-converted AutoTArrays here... I don't have a good feel for typical usage of this object, so I don't know how often we actually hit that many. I wonder if 4 or 8 would be a better default size there [with failover to the heap in cases where that's exceeded of course].) Anyway, I'll punt to jfkthame.
Attachment #8825674 -
Flags: review?(dholbert) → review?(jfkthame)
Assignee | ||
Comment 3•7 years ago
|
||
I noticed the allocations when profiling a google doc and there the number of items was most often 1-4, occasionally up to 16 then rarely over 20. Happy to use lower number too.
Comment 4•7 years ago
|
||
Comment on attachment 8825674 [details] [diff] [review] bidi_less_malloc.diff Review of attachment 8825674 [details] [diff] [review]: ----------------------------------------------------------------- LGTM, thanks. 16 seems a reasonable size for the auto-arrays, IMO; that should be enough that heap allocation here becomes pretty rare, though some complex content will still need it.
Attachment #8825674 -
Flags: review?(jfkthame) → review+
Pushed by opettay@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/0733a44cd6c5 BidiParagraphData should allocate less, r=jfkthame
Comment 6•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0733a44cd6c5
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox53:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Updated•7 years ago
|
Assignee: nobody → bugs
You need to log in
before you can comment on or make changes to this bug.
Description
•