Files
orca/src
Neil d9680eb753 fix(startup): apply the HTTP/1.1 compatibility toggle for migrated profiles, and stop parsing the settings file pre-ready (#18621)
* perf(startup): read the HTTP/1.1 compatibility flag from a marker, not the settings file

configureElectronNetworkCompatibility() runs before app.whenReady(), and it
answered one boolean by synchronously reading and JSON.parsing the whole
orca-data.json — 1.54 MB on a real profile here, measured at 6.6ms read +
3.5ms parse. The Store parses the identical file again moments later, so the
first parse was pure waste on the critical path of every cold start.

Cache the flag in a few-byte marker next to the other pre-ready markers
(gpu-fallback, hang-detection), written at store load and whenever the setting
changes. When no marker exists yet the old full read still runs, so an
upgrading profile keeps the setting on its first launch.

* refactor(startup): drop the unused marker clear helper
2026-09-04 14:31:50 -07:00
..