mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-09-14 18:01:58 +00:00
Sentry initialization already ran on a separate thread, but the cache and state directory resolution happened on the main thread before spawning it. On macOS the cache dir resolution calls NSFileManager URLForDirectory:inDomain:appropriateForURL:create:error: which takes multiple milliseconds and was the single largest cost in global.init. All directory resolution now happens on the init thread. before: 2967us-4018us after: 30us-70us (env map snapshot + thread spawn) global.init total drops from ~3.4-5.0ms to ~0.4-1.0ms.