diff options
author | pennae <github@quasiparticle.net> | 2022-01-01 19:24:20 +0100 |
---|---|---|
committer | pennae <github@quasiparticle.net> | 2022-03-08 23:30:18 +0100 |
commit | 47baa9d43c0339b0a738b9b75c5ddcfb07d7131d (patch) | |
tree | 15b1a5213a4cfb841ee79d0920bdada8ac9150a5 /src/libutil/error.hh | |
parent | c96460f3520862d52b7bf3108f609e20384878e7 (diff) |
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.
Diffstat (limited to 'src/libutil/error.hh')
-rw-r--r-- | src/libutil/error.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/error.hh b/src/libutil/error.hh index d55e1d701..bb43aa53b 100644 --- a/src/libutil/error.hh +++ b/src/libutil/error.hh @@ -53,6 +53,7 @@ typedef enum { lvlVomit } Verbosity; +/* adjust Pos::origin bit width when adding stuff here */ typedef enum { foFile, foStdin, |