This question is primarily directed towards @roman-kashitsyn
I’ve recently been going through the more technical blog posts on the Dfinity Medium channel. In there, I read 2 articles by @roman-kashitsyn around memory management on the IC and in both places he mentions that memory page sizes on the IC are 4KiB in size. I’m referring to these:
-
Optimizing the Internet Computer Memory System’s Performance | by DFINITY | The Internet Computer Review | Medium
-
IC Internals: Orthogonal Persistence | by Roman Kashitsyn | The Internet Computer Review
However, other authoritative sources say that WASM pages are 64KiB in size.
https://www.google.com/search?q=wasm+page+size&oq=wasm+page+size&aqs=chrome.0.69i59j0i22i30j0i390l5j69i61.1809j0j7&sourceid=chrome&ie=UTF-8
I wanted to clarify what the sizes are and if there’s a hole in my understanding. This is required because I am borrowing serialization/deserialization logic from OpenChat’s implementation here and this is a constant that needs to be specified while using the lower level API defined here in the ic_cdk.
Thank you for clarifying.