On 8/9/25 2:30 PM, Matt Corallo wrote:
While various optimizations to improve the space efficiency of history would be welcome, ultimately this really feels like a task for Linux's samepage merging logic. If the history strings themselves were put into contiguous memory (okay, not incredibly trivial, but arenas aren't so complicated), it should be fairly straightforward to just `madvise(addr, length, MADV_MERGEABLE)` and let KSM handle the rest.
If someone would like to take a run at implementing this, as non-portable as it is, I'd look at integrating the changes. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature