firefox-devtools / firefox-devtools/profiler

With a large number of tracks, the initial load is very slow

Open
#3,345 6 comments 0 reactions 0 assignees View on GitHub
perf timeline
Dominant language
TypeScript
Stars
1.5k
Forks
491
Avg merge
3d 46m
Merged PRs (30d)
27

Description

I accidentally captured a profile with 1800 threads. It took a long time before the UI was visible. Here's a profile of the profiler while it was hanging: https://share.firefox.dev/34O2gSO
(I am not sharing the 1800 threads profile.)
I can see the following problems:

* Layout thrashing: For each canvas we add to the timeline, we seem to do a separate layout flush.
* Too many resize listeners: Every canvas has its own window resizing listener.
* Drawing invisible canvases: It would be good to only draw the canvases that are visible.

┆Issue is synchronized with this [Jira Task](https://mozilla-hub.atlassian.net/browse/FP-395)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.