ref-fvm icon indicating copy to clipboard operation
ref-fvm copied to clipboard

Lazy (H)AMT value decoding

Open Stebalien opened this issue 3 years ago • 2 comments

Currently, our rust HAMT and AMT implementations eagerly decode. Unfortunately:

  1. This means we need to eagerly decode everything (and re-encode on save).
  2. This causes what appears to be a significant amount of code bloat as HAMT and AMT internals now need to be monomorphized on a per-value-type basis. If we instead decoded into some form of "deferred" object (as we currently do in go), the core HAMT & AMT code could be value (and even key) agnostic.

Stebalien avatar Feb 11 '22 23:02 Stebalien

@Stebalien P3 + Phase 1 basically means it's not going to happen. We are moving this to Phase 2 and can bump the priority. Please shout if you wanna oppose!

raulk avatar Mar 09 '22 21:03 raulk

This is not an immediate priority.

Stebalien avatar Mar 09 '22 21:03 Stebalien