1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/testing/electron/lto-core-count.patch
2022-07-28 10:11:01 +00:00

15 lines
598 B
Diff

using all the threads with smt leads to >60% of the cpu time being stuck in
kernel contention and doing nothing.
seems to be only a musl issue, though.
--- a/build/config/compiler/BUILD.gn
+++ a/build/config/compiler/BUILD.gn
@@ -678,7 +678,7 @@
# and let it use all cores.
# TODO(thakis): Check if '=0' (that is, number of cores, instead
# of "all" which means number of hardware threads) is faster.
- ldflags += [ "-Wl,--thinlto-jobs=all" ]
+ ldflags += [ "-Wl,--thinlto-jobs=0" ]
if (is_apple) {
ldflags +=
[ "-Wl,-cache_path_lto," +