lix/src/libcmd
pennae 8775be3393 store Symbols in a table as well, like positions
this slightly increases the amount of memory used for any given symbol, but this
increase is more than made up for if the symbol is referenced more than once in
the EvalState that holds it. on average every symbol should be referenced at
least twice (once to introduce a binding, once to use it), so we expect no
increase in memory on average.

symbol tables are limited to 2³² entries like position tables, and similar
arguments apply to why overflow is not likely: 2³² symbols would require as many
string instances (at 24 bytes each) and map entries (at 24 bytes or more each,
assuming that the map holds on average at most one item per bucket as the docs
say). a full symbol table would require at least 192GB of memory just for
symbols, which is well out of reach. (an ofborg eval of nixpks today creates
less than a million symbols!)
2022-04-21 21:56:31 +02:00
..
command.cc don't use full Pos for findPackageFilename/editorFor 2022-04-21 21:25:18 +02:00
command.hh don't use full Pos for findPackageFilename/editorFor 2022-04-21 21:25:18 +02:00
common-eval-args.cc Add shell completion for --override-flake 2022-03-07 12:01:54 +01:00
common-eval-args.hh Add shell completion for --override-flake 2022-03-07 12:01:54 +01:00
installables.cc store Symbols in a table as well, like positions 2022-04-21 21:56:31 +02:00
installables.hh replace most Pos objects/ptrs with indexes into a position table 2022-04-21 21:46:06 +02:00
legacy.cc Move command plugin interface to libnixcmd 2021-01-26 06:22:24 -05:00
legacy.hh Move command plugin interface to libnixcmd 2021-01-26 06:22:24 -05:00
local.mk use LOWDOWN_LIBS variable 2022-01-30 20:59:58 +02:00
markdown.cc Use latest lowdown 2021-09-24 15:22:51 +02:00
markdown.hh Move command plugin interface to libnixcmd 2021-01-26 06:22:24 -05:00
nix-cmd.pc.in Move command plugin interface to libnixcmd 2021-01-26 06:22:24 -05:00