You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Native: use IPC instead of flushing to disk where possible #1834
Proposal: use IPC instead of flushing to disk to speed up scope changes, such as setting tags. For example, send messages over a named pipe on Windows.
As a rough comparison, with Crashpad (Windows Defender and external crash reports disabled):
flush scope to disk (set tag): ~0.5ms
send IPC message (add attachment): ~0.1ms
Based on that, we could estimate that switching the native backend from disk flushes to IPC messages could result in a ~5x speedup when setting tags on Windows.
Even though sentry__scope_apply_to_event is a relatively small part of the whole scope flush process, it's also worth noting that #1794 optimizes that part quite a bit:
Activity
linear-code commentedon Jul 1, 2026
NATIVE-196
jpnurmi commentedon Jul 1, 2026
Even though
sentry__scope_apply_to_eventis a relatively small part of the whole scope flush process, it's also worth noting that #1794 optimizes that part quite a bit:jpnurmi commentedon Sep 16, 2026
Early prototype at jpnurmi/perf/native-ipc shows promising results:
perf(native): Add IPC foundations
perf(native): Add IPC foundations
perf(native): Add IPC foundations
perf(native): Sync scope over IPC
perf(native): Sync scope over IPC
test(benchmarks): Add warmup for native daemon startup
test(benchmarks): Add warmup for native daemon startup (#2154)
perf(native): Sync scope over IPC
perf(native): Add IPC foundations
perf(native): Sync scope over IPC
perf(native): Add IPC foundations
perf(native): Sync scope over IPC
perf(native): Sync scope over IPC
perf(native): Add IPC foundations (#2155)
perf(native): Sync scope over IPC (#2157)
jpnurmi commentedon Oct 21, 2026
#2155 and #2157 were merged into
v1