Age | Commit message (Collapse) | Author |
|
The actual motive here is the avoidance of integer overflow if we were
to make these use checked NixInts and retain the subtraction.
However, the actual *intent* of this code is a three-way comparison,
which can be done with operator<=>, so we should just do *that* instead.
Change-Id: I7f9a7da1f3176424b528af6d1b4f1591e4ab26bf
|
|
Change-Id: I4f642d1046d56b5db26f1b0296ee16a0e02d444a
|
|
once a string has been forced we already have dynamic storage allocated for it,
so we can easily reuse that storage instead of copying.
|
|
Closes https://github.com/NixOS/nix/issues/972
|
|
|
|
This reduces compilation time by ~15 seconds (CPU time).
Issue #4045.
|
|
|