Bug 1743409 Comment 3 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

I collected some ts_paint profiles on Try. [try push with 10.12 SDK (before upgrade)](https://treeherder.mozilla.org/jobs?repo=try&revision=9ca16fc58a9175429f3d3164b17f5f96ef4ea870) [try push with 11 SDK (after upgrade)](https://treeherder.mozilla.org/jobs?repo=try&revision=4f9908b2337368218c199361af2584018da739a7&selectedTaskRun=DQIMFASAThW00cNw3KfeYQ.0)
before: https://share.firefox.dev/3GWPUZS https://share.firefox.dev/3qLepDG https://share.firefox.dev/3ry0wrP https://share.firefox.dev/3rFidGa
after: https://share.firefox.dev/3rxjGOC https://share.firefox.dev/3KrwgYk https://share.firefox.dev/3KtKNCC https://share.firefox.dev/3qHrIVJ

The difference seems to be related to fonts.
With the new SDK, two things have become slower:

 - NSWindow creation takes 100ms instead of 7ms, because one of the window buttons inits its text cell, which triggers some font initialization: https://share.firefox.dev/3qJ6o2n (before SDK upgrade: https://share.firefox.dev/3IkjkS5)
 - gfxPlatformFontList initialization takes 60ms instead of 0ms: https://share.firefox.dev/3nGypWu (before SDK upgrade: https://share.firefox.dev/3GO3PkY)

The build was run on macOS 10.15.7. It's unknown which SDK version exactly causes the runtime behavior change. We haven't tested any other SDKs between 10.12 and 11.0.

Jonathan, do you think there's anything we can do about this?
I collected some ts_paint profiles on Try. [try push with 10.12 SDK (before upgrade)](https://treeherder.mozilla.org/jobs?repo=try&revision=9ca16fc58a9175429f3d3164b17f5f96ef4ea870), [try push with 11 SDK (after upgrade)](https://treeherder.mozilla.org/jobs?repo=try&revision=4f9908b2337368218c199361af2584018da739a7&selectedTaskRun=DQIMFASAThW00cNw3KfeYQ.0)
before: https://share.firefox.dev/3GWPUZS https://share.firefox.dev/3qLepDG https://share.firefox.dev/3ry0wrP https://share.firefox.dev/3rFidGa
after: https://share.firefox.dev/3rxjGOC https://share.firefox.dev/3KrwgYk https://share.firefox.dev/3KtKNCC https://share.firefox.dev/3qHrIVJ

The difference seems to be related to fonts.
With the new SDK, two things have become slower:

 - NSWindow creation takes 100ms instead of 7ms, because one of the window buttons inits its text cell, which triggers some font initialization: https://share.firefox.dev/3qJ6o2n (before SDK upgrade: https://share.firefox.dev/3IkjkS5)
 - gfxPlatformFontList initialization takes 60ms instead of 0ms: https://share.firefox.dev/3nGypWu (before SDK upgrade: https://share.firefox.dev/3GO3PkY)

The build was run on macOS 10.15.7. It's unknown which SDK version exactly causes the runtime behavior change. We haven't tested any other SDKs between 10.12 and 11.0.

Jonathan, do you think there's anything we can do about this?
I collected some ts_paint profiles on Try, using `./mach try fuzzy --geckoProfile`.
[try push with 10.12 SDK (before upgrade)](https://treeherder.mozilla.org/jobs?repo=try&revision=9ca16fc58a9175429f3d3164b17f5f96ef4ea870), [try push with 11 SDK (after upgrade)](https://treeherder.mozilla.org/jobs?repo=try&revision=4f9908b2337368218c199361af2584018da739a7&selectedTaskRun=DQIMFASAThW00cNw3KfeYQ.0) (ts_paint is part of "T(o)", the "other" talos tests.)
before: https://share.firefox.dev/3GWPUZS https://share.firefox.dev/3qLepDG https://share.firefox.dev/3ry0wrP https://share.firefox.dev/3rFidGa
after: https://share.firefox.dev/3rxjGOC https://share.firefox.dev/3KrwgYk https://share.firefox.dev/3KtKNCC https://share.firefox.dev/3qHrIVJ

The difference seems to be related to fonts.
With the new SDK, two things have become slower:

 - NSWindow creation takes 100ms instead of 7ms, because one of the window buttons inits its text cell, which triggers some font initialization: https://share.firefox.dev/3qJ6o2n (before SDK upgrade: https://share.firefox.dev/3IkjkS5)
 - gfxPlatformFontList initialization takes 60ms instead of 0ms: https://share.firefox.dev/3nGypWu (before SDK upgrade: https://share.firefox.dev/3GO3PkY)

The build was run on macOS 10.15.7. It's unknown which SDK version exactly causes the runtime behavior change. We haven't tested any other SDKs between 10.12 and 11.0.

Jonathan, do you think there's anything we can do about this?

Back to Bug 1743409 Comment 3