Skip to content

Commit

Permalink
perf: patch libuv to use posix_spawn on macOS
Browse files Browse the repository at this point in the history
Spawning child processes in an Electron application with a hardened runtime has become slow in macOS Big Sur.

This patch is a cherry-pick of libuv/libuv#3064. This patch should be removed when Electron's libuv version is updated to a version containing this fix.

Fixes: libuv/libuv#3050
Fixes: electron#26143
PR-URL: libuv/libuv#3064

Authored-by: Juan Pablo Canepa <jpcanepa@gmail.com>
Co-authored-by: Marcello Bastéa-Forte <marcello@descript.com>
  • Loading branch information
2 people authored and cvanwinkle committed Jan 18, 2022
1 parent eb7a897 commit a63b7bc
Show file tree
Hide file tree
Showing 2 changed files with 574 additions and 0 deletions.
1 change: 1 addition & 0 deletions patches/node/.patches
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ fix_event_with_invalid_timestamp_in_trace_log.patch
test_fix_test-datetime-change-notify_after_daylight_change.patch
test_add_fixture_trim_option.patch
fix_crash_caused_by_gethostnamew_on_windows_7.patch
perf_patch_libuv_to_use_posix_spawn_on_macos.patch
Loading

0 comments on commit a63b7bc

Please sign in to comment.