What happens when accessing a StableBTree over 4 GiB?

I am writing a code on stable-structure. If the BTree may store more than 4 GiB of data, will it be readable?
According to the implementation, all the keys are copied to the heap and the values are delayed, but I am not sure what will happen.

If you are doing a lot of data handling, have a look at IC Stable Memory crate. It’s more performant than IC Stable Structures crate. It’s a bit trickier to setup the structs though.

You can see an example of the differences here

1 Like

Thank you! I take a look.