Closed
Bug 1641245
Opened 3 years ago
Closed 3 years ago
Make string comparators non-virtual.
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla78
Tracking | Status | |
---|---|---|
firefox78 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
Details
Attachments
(1 file)
These are hot and we don't have any use case for the extra statefulness that using a class with virtual operator() provides.
Assignee | ||
Comment 1•3 years ago
|
||
There's no use case for stateful comparators, so they can be just plain
function pointers.
This is used in some hot places like CSS selector matching.
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b4db58c003ae Make string comparators not virtual. r=froydnj,necko-reviewers,geckoview-reviewers,jgilbert,agi,valentin
Pushed by emilio@crisal.io: https://hg.mozilla.org/integration/autoland/rev/c35efe3c43dc Fix silly windows build bustage.
Comment 4•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b4db58c003ae
https://hg.mozilla.org/mozilla-central/rev/c35efe3c43dc
Status: NEW → RESOLVED
Closed: 3 years ago
status-firefox78:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
Pushed by geoff@darktrojan.net: https://hg.mozilla.org/comm-central/rev/b987d3619e0c Port bug 1641245 - Make string comparators not virtual. rs=bustage-fix
Updated•2 years ago
|
Component: String → XPCOM
You need to log in
before you can comment on or make changes to this bug.
Description
•