-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance regression Lite vs no extension #73
Comments
Please use the Firefox profiler to find out whether the issue is in uBO's code or elsewhere. |
I did check them, but can only see that it spends most of the time with __psynch_cvwait, not sure how one can check what the trigger is of that. I made two recordings and uploaded them: With Lite: https://share.firefox.dev/3riWPKy |
Look at parent process. It's in Firefox DNR code. |
Ah right, so a bug in Firefox or does uBlock use the code incorrectly? |
AFAIK if you did not enable anything uBOL only delivers filter list and that's all. All work is done in browser. |
I've opened https://bugzilla.mozilla.org/show_bug.cgi?id=1853569, hopefully they confirm the issue. Feel free to edit it if you have a better description/summary etc. |
I see at least two obvious performance issues in Firefox's code: For each network request, it iterates through all the rules to find best match: For some of the rules containing long list of domains, it potentially (and likely) iterates through all the domains to find a match: For instance, there is one rule in default ruleset which It looks like Firefox's DNR implementation is a "minimal viable product" state, and no work has been done on it since April 2023. |
I am not seeing issues with uBO itself, so changing title. If you think there are performance issues with uBO, please provide supporting profiling data. |
Follow progress at https://bugzilla.mozilla.org/show_bug.cgi?id=1853569. |
I think I found a reproducible performance regression and wanted to know if you see anything from your side that you can fix or if I would have to report it to Mozilla.
Always tested with a fresh profile, only setting changed was "Enhanced Tracking Protection" to Strict (except for the first line). No extensions installed unless specified, no hard refresh:
Summary: DOMContentLoaded is not affected, Finish has some irregularities so I think Load Event is the best to use for judgement. It seems that Lite has the worst regression, while Origin only has a minor one.
I took the numbers from the network tab of the developer tools.
Tested URL: https://www.tripadvisor.ch/Restaurant_Review-g186338-d10460592-Reviews-Bonoo-London_England.html
Impact: While I only did the extensive testing with that specific URL (because I could feel the longest loading time on tripadvisor), I think that Firefox in general feels slower. But I wanted to give you specifics so I made this tests.
Firefox: 115.2.1esr
OS: macOS 12.6.9
The text was updated successfully, but these errors were encountered: