forked from NixOS/nix
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the default GC_INITIAL_HEAP_SIZE a lot bigger
On Linux, we now use 80% of free memory. If it's free, we may as well use it, and hopefully avoid some expensive stop-the-world GC cycles. On macOS, we just assume that 25% of memory is free, so we use 80% of 25% = 20% of memory by default.
- Loading branch information
Showing
1 changed file
with
39 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters