Speed up arena_run_reg_dalloc
Categories
(Core :: Memory Allocator, enhancement, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox110 | --- | fixed |
People
(Reporter: pbone, Assigned: pbone)
References
Details
Attachments
(2 files, 1 obsolete file)
The FastDivide code here isn't actually faster than just doing a division. At least on my Skylake system. It's probably still better in some systems.
I've found that I can speed this code up further by eluding the branches we use to decide how to divide.
Assignee | ||
Comment 1•2 years ago
|
||
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
Make mRunSize the number of pages in a run rather than bytes, so that it can
be stored in a single byte and save some space in bin headers.
Depends on D132322
Assignee | ||
Comment 3•1 year ago
|
||
Depends on D140036
Updated•1 year ago
|
Updated•1 year ago
|
Pushed by pbone@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/25647d613534 Remove branches that decide how to divide r=glandium https://hg.mozilla.org/integration/autoland/rev/d299fa6358f7 Make arena_bin_t 32 or 48 bytes long r=glandium
Comment 5•1 year ago
|
||
Backed out for causing multiple failures
Seems that it only happened on OS X 11 WebRender Shippable.
Assignee | ||
Comment 6•1 year ago
|
||
I forgot to test on ARM64, especially M1 whose pagesize is larger and therefore the division constants I chose don't work
Pushed by pbone@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3a6e4adf6853 Remove branches that decide how to divide r=glandium https://hg.mozilla.org/integration/autoland/rev/72ad95ef4cde Make arena_bin_t 32 or 48 bytes long r=glandium https://hg.mozilla.org/integration/autoland/rev/febef97c7fbe 1743322: apply code formatting via Lando
Comment 8•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/3a6e4adf6853
https://hg.mozilla.org/mozilla-central/rev/72ad95ef4cde
https://hg.mozilla.org/mozilla-central/rev/febef97c7fbe
Description
•