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 <[email protected]>
Co-authored-by: Marcello Bastéa-Forte <[email protected]>
  • Loading branch information
cvanwinkle and marcello3d committed Mar 13, 2022
1 parent d35270e commit adfa9bb
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 @@ -32,3 +32,4 @@ fix_don_t_create_console_window_when_creating_process.patch
darwin_remove_eprototype_error_workaround_3405.patch
darwin_translate_eprototype_to_econnreset_3413.patch
darwin_bump_minimum_supported_version_to_10_15_3406.patch
perf_patch_libuv_to_use_posix_spawn_on_macos.patch
Loading

0 comments on commit adfa9bb

Please sign in to comment.