Open Bug 1946247 Opened 2 months ago Updated 23 days ago

nsNativeThemeCocoa queries font information on the startup path, should create NSCells lazily

Categories

(Core :: Widget: Cocoa, defect, P3)

defect

Tracking

()

ASSIGNED

People

(Reporter: mstange, Assigned: mstange)

References

(Blocks 1 open bug)

Details

(Keywords: perf)

This profile from our new macOS 14.7 CI machines shows that startup spends a bunch of time in the nsNativeThemeCocoa constructor: https://share.firefox.dev/41dL87f
(This profile was gathered in bug 1938328 comment 6, thanks Henrik!)

We should try to remove the NSButtonCell and NSComboBoxCell construction from the startup path, and maybe create them lazily.

Blocks: 1938328

The severity field is not set for this bug.
:spohl, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(spohl.mozilla.bugs)
Severity: -- → S3
Flags: needinfo?(spohl.mozilla.bugs)
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.