Open
Bug 1492470
Opened 8 years ago
Updated 4 years ago
multiple (identical?) implementations of selectors::matching::matches_simple_selector
Categories
(Core :: CSS Parsing and Computation, enhancement, P3)
Core
CSS Parsing and Computation
Tracking
()
NEW
People
(Reporter: froydnj, Unassigned)
Details
Looking at large symbols in libxul, I see:
128025: 000000000503e2e0 8880 FUNC LOCAL DEFAULT 16 _ZN9selectors8matching23matches_simple_selector17h8c11224abe618a2aE
128024: 000000000504a4a0 8880 FUNC LOCAL DEFAULT 16 _ZN9selectors8matching23matches_simple_selector17h863b861828655b84E
128022: 0000000005057b20 8880 FUNC LOCAL DEFAULT 16 _ZN9selectors8matching23matches_simple_selector17h658671dedb58aecfE
128020: 0000000005096090 8880 FUNC LOCAL DEFAULT 16 _ZN9selectors8matching23matches_simple_selector17h37536b3df15d48a1E
128018: 0000000005088910 8880 FUNC LOCAL DEFAULT 16 _ZN9selectors8matching23matches_simple_selector17h0ab92e79377f6703E
Five different copies of the function, all exactly the same size. Assuming they are collapsible somehow without giving up performance, that would be a nice small size win.
Comment 1•8 years ago
|
||
I _think_ they should be nearly identical except for the closure that gets passed. But we have multiple callers with the empty closure, which I guess rust / the linker isn't smart enough to dedup?
Should be possible to remove a few that way, though I hope to remove that closure entirely in bug 1406622...
Updated•8 years ago
|
Priority: -- → P3
Updated•4 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•