Skip to content

Commit

Permalink
perf: patch libuv to use posix_spawn on macOS (#27654)
Browse files Browse the repository at this point in the history
* perf: patch libuv to use posix_spawn on macOS

patch libuv to fix a performance regression in macOS >= 11

Spawning child processes in an Electron application with a hardened
runtime has become slow in macOS Big Sur. This patch is a squashed
version of libuv/libuv#3064

This patch should be removed when libuv PR 3064 is merged.

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

Authored-by: Juan Pablo Canepa <jpcanepa@gmail.com>
Co-authored-by: Marcello Bastéa-Forte <marcello@descript.com>
Electron patch prepared by: Pat DeSantis <pdesantis3@gmail.com>

* Remove trailing whitespaces from patch file

* update patches

* Update patch description

* Update .patches

Co-authored-by: Pat DeSantis <pdesantis3@gmail.com>
Co-authored-by: Electron Bot <electron@github.com>
Co-authored-by: Robo <hop2deep@gmail.com>
  • Loading branch information
4 people committed Feb 11, 2021
1 parent 99eb8ac commit 19f8ea3
Show file tree
Hide file tree
Showing 2 changed files with 575 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 @@ -47,3 +47,4 @@ fix_add_v8_enable_reverse_jsargs_defines_in_common_gypi.patch
chore_expose_v8_initialization_isolate_callbacks.patch
fix_add_safeforterminationscopes_for_sigint_interruptions.patch
allow_preventing_preparestacktracecallback.patch
darwin_libuv_use_posix_spawn.patch

0 comments on commit 19f8ea3

Please sign in to comment.