Skip to content
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

Improve startup time on macOS #1380

Open
erf opened this issue Dec 22, 2023 · 2 comments
Open

Improve startup time on macOS #1380

erf opened this issue Dec 22, 2023 · 2 comments
Labels
enhancement New feature or request fonts font rasterization and text shaping API and platform implementations frontend Contour Terminal Emulator (GUI frontend) performance Performance issues or improvements platform: osx topics that directly address OS/X platform

Comments

@erf
Copy link

erf commented Dec 22, 2023

Abstract

Startup time now on macOS is about ~3 seconds whilst other popular terminals open in about 1 second.

Motivation

Specification

@erf erf added enhancement New feature or request feature-request User requested features labels Dec 22, 2023
@whisperity whisperity added frontend Contour Terminal Emulator (GUI frontend) performance Performance issues or improvements platform: osx topics that directly address OS/X platform and removed feature-request User requested features labels Dec 22, 2023
@christianparpart
Copy link
Member

Many thanks for all of your tickets, @erf. On this one, this is because it's an x86-64 build running on an Apple M1 (ARM64), where Apple Rosetta 2 is doing an initial JIT-transpiling into an ARM64 executable. I realise that Alacritty is faster, but Warp terminal is slower than Contour in startup-times.

I am sure there's something we can optimize in general startup performance, regardless of the platform (MacOS), which is initial font fallback discovery (because that's done at process startup, but could easily be cached, or lazy-loaded as needed).

We could also start providing native Apple M1 executables on the release page (I am mainly using an Apple M1 as well, where i'm - apart from running OS/X - also run ARM64 based Linux VMs daily). 🤔

@christianparpart christianparpart added the fonts font rasterization and text shaping API and platform implementations label Dec 22, 2023
@erf
Copy link
Author

erf commented Dec 22, 2023

That makes sense! i Run on a m1 macbook. Building a universal build including Apple Silicon would probably make it much faster!

BTW: I tested against Terminal.app, iTerm2.app, Wezterm and Ghostty and they were all about 1 sec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fonts font rasterization and text shaping API and platform implementations frontend Contour Terminal Emulator (GUI frontend) performance Performance issues or improvements platform: osx topics that directly address OS/X platform
Projects
None yet
Development

No branches or pull requests

3 participants