In my mental view, i think about the memory manager as a partition manager.
Specifically i think about A memory in memory manager(there can be a theoretical max of 255 memories) as a partition. In that mental model, i noticed that the memory (partition) is allocated at the time of first insert and not at init time.
In context of operating a file system within the confines of that memory; coperating with other memories (partitions) that might store BTreeMaps or other structures, would it be possible to make an external call to the memory manager to explicitly allocate a memory in context of 1024 pages without waiting for an insert?
Further each memory segment is 1024 wasm pages and can grow dynamically(but currently, i believe, only in context of additional inserts in the BTreeMaps) 1024 pages at a time, would it possible for the filesystem to call the memory manager to allocate more segments as needed? I may not using the term “segment” correctly as in the code.
@ielashi @roman-kashitsyn @domwoe