Merkle trees and build systems
Merkle trees and build systems
Posted May 31, 2020 20:01 UTC (Sun) by MrWim (subscriber, #47432)In reply to: Merkle trees and build systems by nim-nim
Parent article: Merkle trees and build systems
You're referring to maintainer scripts and the like? With apt2ostree we store both the data and the metadata in separate trees. When we come to combine them together we try to reconstruct a dpkg database that would result from all these packages being unpacked into a chroot.
I think of it being a bit like map-reduce, where you design the reduce step to be as cheap as possible, and the map can be expensive if you like because it deterministic, cacheable and parallelizable.
