perf(native): load libcurl lazily in crash daemon - #1955
Open
jpnurmi wants to merge 3 commits into
Open
Conversation
jpnurmi
force-pushed
the
jpnurmi/perf/native-daemon-curl
branch
from
August 4, 2026 19:39
ce91251 to
d242d0b
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit d242d0b. Configure here.
jpnurmi
force-pushed
the
jpnurmi/perf/native-daemon-curl
branch
from
August 4, 2026 19:50
d242d0b to
a0b4478
Compare
jpnurmi
force-pushed
the
jpnurmi/perf/native-daemon-curl
branch
from
August 4, 2026 19:53
a0b4478 to
9c02684
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## jpnurmi/feat/curl-link-option #1955 +/- ##
=================================================================
+ Coverage 67.94% 75.85% +7.91%
=================================================================
Files 91 94 +3
Lines 21607 22246 +639
Branches 3843 3962 +119
=================================================================
+ Hits 14681 16875 +2194
+ Misses 4952 4463 -489
+ Partials 1974 908 -1066 🚀 New features to boost your workflow:
|
jpnurmi
force-pushed
the
jpnurmi/perf/native-daemon-curl
branch
from
August 5, 2026 08:07
9c02684 to
f59b6a8
Compare
Default the Native Unix crash daemon to runtime libcurl loading when SENTRY_LINK_CURL=AUTO. Keep explicit SENTRY_LINK_CURL=ON/OFF respected for the daemon. This lets sentry-crash avoid a direct libcurl dependency by default while the SDK continues to link libcurl directly unless configured otherwise. See: #1852
Signal readiness to the parent process before starting the daemon transport. This keeps libcurl loading and curl transport initialization out of the startup handshake, while still starting the transport before the daemon enters its crash wait loop. See: #1852
jpnurmi
force-pushed
the
jpnurmi/perf/native-daemon-curl
branch
from
August 5, 2026 14:49
f59b6a8 to
8fc3b36
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Default the Native Unix crash daemon to runtime libcurl loading when
SENTRY_LINK_CURLis not explicitly set. Keep explicitSENTRY_LINK_CURL=ON/OFFrespected for the daemon. This lets sentry-crash avoid a direct libcurl dependency by default while the SDK continues to link libcurl directly unless configured otherwise.Signal readiness to the parent process before starting the daemon transport. This keeps libcurl loading and curl transport initialization out of the startup handshake, while still starting the transport before the daemon enters its crash wait loop.
Important
Native/Unix daemon readiness now means the daemon IPC is ready, not that the HTTP transport has already been started. The daemon signals readiness to the parent first, then starts the transport immediately afterward. In practice, this keeps app startup from waiting on libcurl loading/initialization while preserving normal daemon-side sending once startup continues.
This shaves off ~50% startup time on Linux.
Before:
After:
See: