Consider implementing for_each_cacheless
, similar to what was done in #2189, to limit memory usage during a single collection iteration.
https://github.com/filecoin-project/ref-fvm/tree/master/ipld/hamt
https://github.com/filecoin-project/ref-fvm/tree/master/ipld/kamt
Finding a decent existing use case to note the real-world performance gain would be great.