Stop linking by symbol: from O(symbols) to O(store paths)

fzakaria.com17 min read

The author introduces storeld, a dynamic linker designed for immutable, store-based systems like Nix that eliminates per-symbol resolution overhead in favor of store path linking. By replacing traditional dynamic linkers with a system that uses a single base pointer per library and build-time constant offsets, storeld reduces linking complexity from O(symbols) to O(store paths). The author demonstrates that this approach keeps startup latency and RAM usage nearly constant even as the number of symbols scales significantly. Open article →

More on this topic