Consider removing NSCAP_FEATURE_USE_BASE
Categories
(Core :: XPCOM, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox115 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
References
Details
Attachments
(3 files)
Assignee | ||
Comment 1•8 years ago
|
||
![]() |
||
Comment 2•8 years ago
|
||
![]() |
||
Updated•8 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
Assignee | ||
Comment 4•2 years ago
|
||
Assignee | ||
Comment 5•2 years ago
|
||
This is a relatively small code size regression (130k on windows and
macOS, 180k on Linux), for a few high confidence improvements in
speedometer 3. See link in the bug.
If this sticks, we can actually clean up a bunch of code, and eventually
unify RefPtr and nsCOMPtr. But I want this to be on the tree for a while
before doing more aggressive refactorings / actually removing the code.
Updated•2 years ago
|
Comment 6•2 years ago
•
|
||
I think we need to check apk size here too. This adds quite a bit binary overhead and we don't have too much left on apk.
Comment 7•2 years ago
|
||
For posterity, could you please write out what the important changes you see in Speedometer 3 in a comment? Presumably the PerfHerder links won't last forever. Thanks.
Comment 8•2 years ago
|
||
(In reply to Olli Pettay [:smaug][bugs@pettay.fi] from comment #6)
I think we need to check apk size here too. This adds quite a bit binary overhead and we don't have too much left on apk.
If this is the only issue, maybe it could be changed on a per-platform basis? eg Android shouldn't need to take a size regression for a Windows speed improvement. Having platforms diverge could cause some headaches, but on the other hand it looks like debug and opt builds are already different and I can't recall it causing huge issues. I guess the major issue would be if anybody is changing the actual nsCOMPtr class that uses it.
Comment 9•2 years ago
|
||
FWIW, the main improvement is on jQuery, TodoMVC-jQuery/total -2.02% (Windows). That is from the comment 4.
Assignee | ||
Comment 10•2 years ago
|
||
Other results show lower confidence but also general improvements.
Assignee | ||
Comment 11•2 years ago
|
||
$ du -b geckoview_example*
69062934 geckoview_example.apk
69074260 geckoview_example-with-patch.apk
So... 11.3kb, which seems not too much?
Assignee | ||
Comment 13•2 years ago
|
||
Then I'd lean towards landing the patch as-is, for simplicity and also so that we can eventually unify nsCOMPtr and RefPtr.
Comment 14•2 years ago
|
||
Comment 15•2 years ago
|
||
bugherder |
Comment 16•2 years ago
|
||
It would have be good to have gotten review from another XPCOM peer for such a major change as this.
Assignee | ||
Comment 17•2 years ago
|
||
I didn't consider it particularly major fwiw, but sure... I plan to do some followup clean-ups so if it deserves more discussion we can do that there I suppose, or we can always backout if you think it's not a good direction?
Comment 18•2 years ago
|
||
Discussing it in followups sounds good to me.
Assignee | ||
Comment 19•2 years ago
|
||
(since I forgot to comment with those above)
Description
•