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
pdesantis and marcello3d committed Jun 5, 2021
1 parent b5c7963 commit ebdb945
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 @@ -35,3 +35,4 @@ src_inline_asynccleanuphookhandle_in_headers.patch
fix_handle_new_tostring_behavior_in_v8_serdes_test.patch
fix_the_--harmony-weak-refs_has_been_removed_remove_from_specs.patch
node-api_faster_threadsafe_function.patch
perf_patch_libuv_to_use_posix_spawn_on_macos.patch
Loading

0 comments on commit ebdb945

Please sign in to comment.