Skip to content

perf: add API for updating attachments#157

Open
jpnurmi wants to merge 8 commits into
getsentryfrom
jpnurmi/feat/crashpad-ipz
Open

perf: add API for updating attachments#157
jpnurmi wants to merge 8 commits into
getsentryfrom
jpnurmi/feat/crashpad-ipz

Conversation

@jpnurmi

@jpnurmi jpnurmi commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Warning

WIP    🚧🔨⏳⛔

Improve attachment (__sentry-event) update performance on Windows by offloading write/append disk I/O to the crash handler over IPC. The client only waits until the handler accepts the IPC payload, not until the file write completes. macOS and Linux keep direct file writes behind the same CrashpadClient API because local attachment writes are already cheap enough there.

Required for:

Comment thread client/crashpad_client_win.cc
Comment thread util/win/exception_handler_server.cc
Comment thread client/crashpad_client_win.cc
Comment thread util/win/registration_protocol_win_structs.h
@jpnurmi jpnurmi force-pushed the jpnurmi/feat/crashpad-ipz branch from b34cefd to 919800c Compare July 10, 2026 06:41
Comment thread util/win/exception_handler_server.cc
Comment thread util/win/exception_handler_server.cc
Comment thread util/win/exception_handler_server.cc
Comment thread util/win/registration_protocol_win.cc

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 4 total unresolved issues (including 3 from previous reviews).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 9dfb02b. Configure here.

Comment thread handler/linux/exception_handler_server.cc
jpnurmi and others added 8 commits July 10, 2026 13:52
Allow clients to send replacement attachment contents to the handler with
variable-length IPC messages. The handler writes the updated bytes to the
attachment path while keeping attachment registration unchanged.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
@jpnurmi jpnurmi force-pushed the jpnurmi/feat/crashpad-ipz branch from 9dfb02b to 16981c9 Compare July 10, 2026 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant