1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00

symbol-table: reduce memory usage and use boost::unordered_flat_set

This commit is contained in:
Philipp Otterbein 2025-05-18 03:53:50 +02:00
parent 32d19040e7
commit 94bbaddb93
5 changed files with 199 additions and 59 deletions

View file

@ -606,7 +606,7 @@ void ExprLambda::setDocComment(DocComment docComment) {
size_t SymbolTable::totalSize() const
{
size_t n = 0;
dump([&] (const std::string & s) { n += s.size(); });
dump([&] (SymbolStr s) { n += s.size(); });
return n;
}