lix/src/libexpr/flake
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
..
call-flake.nix Represent 'follows' inputs explicitly in the lock file 2020-06-11 14:40:21 +02:00
config.cc Move some stuff from Settings to a new FetchSettings. 2022-03-01 01:39:25 +00:00
flake.cc store Symbols in a table as well, like positions 2022-04-21 21:56:31 +02:00
flake.hh If we can't write a lock file, pretend the top-level flake is dirty 2021-09-15 18:31:42 +02:00
flakeref.cc Fix segfault in headerCallback() 2022-03-03 11:11:16 +01:00
flakeref.hh Re-allow inputs.x.url = "/path/to/file" 2021-12-13 20:59:33 +01:00
lockfile.cc libfetchers: Rename immutable -> locked 2022-02-24 18:09:00 +01:00
lockfile.hh Capitalize JSON for consistency 2020-10-28 17:54:28 -05:00