]> git.ipfire.org Git - thirdparty/libsolv.git/commit
Bring down languagecache size if more than one language is configured
authorMichael Schroeder <mls@suse.de>
Thu, 30 Apr 2026 11:56:23 +0000 (13:56 +0200)
committerMichael Schroeder <mls@suse.de>
Thu, 30 Apr 2026 12:46:35 +0000 (14:46 +0200)
commitef513a6f7c2b896356eaefffab2f37b35b8ca8a2
treefd2266f3b9405461221660b2f81c4fd576d6f97d
parent96a100a745a22880259565e20321378a8615e62c
Bring down languagecache size if more than one language is configured

We do not care about most of the pre-defined ids, so using a cache
with the size nlang*ID_NUM_INTERNAL uses way to much space.

Rewrite the cache code to use a cache of the size ID_NUM_INTERNAL
plus (nlang+1) times the used keynames. Optimize the nlang=1
case so that it also uses less memory.
src/pool.c
src/pool.h
src/solvable.c