I tried a few variations on how to defer the `extensions-late-startup` notification to improve Fenix applink. (These all use web-extension preallocation as a base, bug 1958327). Note that there is a fair deal of noise in these tests. [Defer by 200ms - ~70ms improvement on A55](https://perf.compare/compare-results?baseRev=1c34f8b9517d76d69dd08c4fa8e2dcd8755c29eb&newRev=a8d92eba561a6683fc883a0891d6040eabbefab7&baseRepo=try&newRepo=try&framework=15) [Defer by 500ms - ~140ms improvement on A55](https://perf.compare/compare-results?baseRev=1c34f8b9517d76d69dd08c4fa8e2dcd8755c29eb&newRev=d6c87a47be46308fc9dd115a18a0d9c9a7dbaa05&baseRepo=try&newRepo=try&framework=15 ) [Defer by 1000ms - ~210ms improvement on A55](https://perf.compare/compare-results?baseRev=1c34f8b9517d76d69dd08c4fa8e2dcd8755c29eb&newRev=e340a80c9e496409b079e051f72670ee42a7099d&baseRepo=try&newRepo=try&framework=15 ) [Defer until main thread is consistently idle - ~180ms improvement on A55](https://perf.compare/compare-results?baseRev=1c34f8b9517d76d69dd08c4fa8e2dcd8755c29eb&newRev=15cfb79cd1d4415f6aed662e460d3f37da7a5b93&baseRepo=try&newRepo=try&framework=15 ) -- this is interesting but more complicated, propose consider for future [Defer only if geckoview is loading a document - ~165ms improvement on A55]( https://perf.compare/compare-results?baseRev=1c34f8b9517d76d69dd08c4fa8e2dcd8755c29eb&newRev=0d6ced98f3d52f2070e6ff61bfd5da55842287c0&baseRepo=try&newRepo=try&framework=15) -- but maybe we always want to defer the extension startup? In the end I put up the simple deferral by 1000ms for review. But this isn't an area that I work in so happy to hear other's thoughts.
Bug 2004778 Comment 5 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
I tried a few variations on how to defer the `extensions-late-startup` notification to improve Fenix applink. (These all use web-extension preallocation as a base, bug 1958327). Note that there is a fair deal of noise in these tests. [Defer by 200ms - ~70ms improvement on A55](https://perf.compare/compare-results?baseRev=1c34f8b9517d76d69dd08c4fa8e2dcd8755c29eb&newRev=a8d92eba561a6683fc883a0891d6040eabbefab7&baseRepo=try&newRepo=try&framework=15) [Defer by 500ms - ~140ms improvement on A55](https://perf.compare/compare-results?baseRev=1c34f8b9517d76d69dd08c4fa8e2dcd8755c29eb&newRev=d6c87a47be46308fc9dd115a18a0d9c9a7dbaa05&baseRepo=try&newRepo=try&framework=15 ) [Defer by 1000ms - ~210ms improvement on A55](https://perf.compare/compare-results?baseRev=1c34f8b9517d76d69dd08c4fa8e2dcd8755c29eb&newRev=e340a80c9e496409b079e051f72670ee42a7099d&baseRepo=try&newRepo=try&framework=15 ) [Defer until main thread is consistently idle - ~180ms improvement on A55](https://perf.compare/compare-results?baseRev=1c34f8b9517d76d69dd08c4fa8e2dcd8755c29eb&newRev=15cfb79cd1d4415f6aed662e460d3f37da7a5b93&baseRepo=try&newRepo=try&framework=15 ) -- this is interesting but more complicated, propose consider for future [Defer only if geckoview is loading a document - ~165ms improvement on A55]( https://perf.compare/compare-results?baseRev=1c34f8b9517d76d69dd08c4fa8e2dcd8755c29eb&newRev=0d6ced98f3d52f2070e6ff61bfd5da55842287c0&baseRepo=try&newRepo=try&framework=15) -- but maybe we always want to defer the extension startup? In the end I put up the simple deferral by 1000ms for review. But this isn't an area that I work in so happy to hear others' thoughts.
I tried a few variations on deferring the `extensions-late-startup` notification to improve Fenix applink. (These all use web-extension preallocation as a base, bug 1958327). Note that there is a fair deal of noise in these tests. [Defer by 200ms - ~70ms improvement on A55](https://perf.compare/compare-results?baseRev=1c34f8b9517d76d69dd08c4fa8e2dcd8755c29eb&newRev=a8d92eba561a6683fc883a0891d6040eabbefab7&baseRepo=try&newRepo=try&framework=15) [Defer by 500ms - ~140ms improvement on A55](https://perf.compare/compare-results?baseRev=1c34f8b9517d76d69dd08c4fa8e2dcd8755c29eb&newRev=d6c87a47be46308fc9dd115a18a0d9c9a7dbaa05&baseRepo=try&newRepo=try&framework=15 ) [Defer by 1000ms - ~210ms improvement on A55](https://perf.compare/compare-results?baseRev=1c34f8b9517d76d69dd08c4fa8e2dcd8755c29eb&newRev=e340a80c9e496409b079e051f72670ee42a7099d&baseRepo=try&newRepo=try&framework=15 ) [Defer until main thread is consistently idle - ~180ms improvement on A55](https://perf.compare/compare-results?baseRev=1c34f8b9517d76d69dd08c4fa8e2dcd8755c29eb&newRev=15cfb79cd1d4415f6aed662e460d3f37da7a5b93&baseRepo=try&newRepo=try&framework=15 ) -- this is interesting but more complicated, propose consider for future [Defer only if geckoview is loading a document - ~165ms improvement on A55]( https://perf.compare/compare-results?baseRev=1c34f8b9517d76d69dd08c4fa8e2dcd8755c29eb&newRev=0d6ced98f3d52f2070e6ff61bfd5da55842287c0&baseRepo=try&newRepo=try&framework=15) -- but maybe we always want to defer the extension startup? In the end I put up the simple deferral by 1000ms for review. But this isn't an area that I work in so happy to hear others' thoughts.