Skip to content

Native: use IPC instead of flushing to disk where possible #1834

Closed

Description

@jpnurmi

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.

See also:

Activity

  1. linear-code commented on Jul 1, 2026

    @linear-code
  2. jpnurmi commented on Jul 1, 2026

    @jpnurmi
    CollaboratorAuthor

    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:

  3. self-assigned this
    on Sep 15, 2026
  4. jpnurmi commented on Sep 16, 2026

    @jpnurmi
    CollaboratorAuthor

    Early prototype at jpnurmi/perf/native-ipc shows promising results:

    Image
  5. added a parent issue on Sep 21, 2026
  6. jpnurmi commented on Oct 21, 2026

    @jpnurmi
    CollaboratorAuthor

    #2155 and #2157 were merged into v1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Improvementimprovement for existing featuresNativeplatform label

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions