Reduce GNU Make latency 17% for cosmo

fgets() is now 4x faster which makes Make 2% faster. Landlock Make now
has a builtin $(uniq ...) function that uses critbit trees rather than
functional programming. Since uniq is the most important function this
optimization makes our cold start latency 15% faster.
This commit is contained in:
Justine Tunney 2022-08-19 15:29:24 -07:00
parent 8835b82a7c
commit d76dfadc7a
7 changed files with 96 additions and 11 deletions

View file

@ -441,7 +441,8 @@ expand_argument (const char *str, const char *end)
r = allocated_variable_expand (tmp);
free (alloc);
if (alloc)
free (alloc);
return r;
}