Closed Bug 1385159 Opened 7 years ago Closed 7 years ago

Use autoarryay to prevent buffer allocation in DrawTargetSkia::DrawGlyphs

Categories

(Core :: Web Painting, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Performance Impact ?
Tracking Status
firefox56 --- fixed

People

(Reporter: u459114, Assigned: u459114)

References

Details

Attachments

(2 files, 1 obsolete file)

While profing https://immersion.media.mit.edu/demo
In DrawTargetSkia::DrawGlyphs
vector::append spends 4.0ms + 7.0ms
arena_dalloc spends 4.0ms
Summary: Use autoarryay to prevent buffer allocation in → Use autoarryay to prevent buffer allocation in DrawTargetSkia::DrawGlyphs
Attachment #8891247 - Attachment is obsolete: true
Attachment #8891246 - Flags: review?(matt.woodrow)
Whiteboard: [qf:investigate] → [qf]
Comment on attachment 8891246 [details]
Bug 1385159 - Use array on the stack  to prevent buffer allocation in DrawTargetSkia::DrawGlyphs.

https://reviewboard.mozilla.org/r/162448/#review168150

This seems like a lot of stack space to consume.

Do we have any data on how long strings normally are? Could we go shorter than 512 and still get most of the benefits?
I'd prefer if we could try minimize this, to reduce the chances of overflowing the stack.
Attachment #8891246 - Flags: review?(matt.woodrow) → review+
Comment on attachment 8891246 [details]
Bug 1385159 - Use array on the stack  to prevent buffer allocation in DrawTargetSkia::DrawGlyphs.

https://reviewboard.mozilla.org/r/162448/#review168150

Mostly, < 64. Sometimes, between 64 and 128. > 128 is rare.
Pushed by cku@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0d32624a93df
Use array on the stack  to prevent buffer allocation in DrawTargetSkia::DrawGlyphs. r=mattwoodrow
https://hg.mozilla.org/mozilla-central/rev/0d32624a93df
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Performance Impact: --- → ?
Whiteboard: [qf]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: