mirror of
https://github.com/NixOS/nix
synced 2025-06-26 20:01:15 +02:00
make Pos smaller
reduces peak hep memory use on eval of our test system from 264.4MB to 242.3MB, possibly also a slight performance boost. theoretically memory use could be cut down by another eight bytes per Pos on average by turning it into a tuple containing an index into a global base position table with row and column offsets, but that doesn't seem worth the effort at this point.
This commit is contained in:
parent
c96460f352
commit
47baa9d43c
2 changed files with 7 additions and 7 deletions
|
@ -53,6 +53,7 @@ typedef enum {
|
|||
lvlVomit
|
||||
} Verbosity;
|
||||
|
||||
/* adjust Pos::origin bit width when adding stuff here */
|
||||
typedef enum {
|
||||
foFile,
|
||||
foStdin,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue