We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa24a8f commit 8b05ab2Copy full SHA for 8b05ab2
packages/vm/src/modules/in_memory_cache.rs
@@ -11,7 +11,7 @@ use crate::{Size, VmError, VmResult};
11
// Based on `examples/module_size.sh`, and the cosmwasm-plus contracts.
12
// We use an estimated *minimum* module size in order to compute a number of pre-allocated entries
13
// that are enough to handle a size-limited cache without requiring re-allocation / resizing.
14
-// This will incurr an extra memory cost for the unused entries, but it's negligible:
+// This will incur an extra memory cost for the unused entries, but it's negligible:
15
// Assuming the cost per entry is 48 bytes, 10000 entries will have an extra cost of just ~500 kB.
16
// Which is a very small percentage (~0.03%) of our typical cache memory budget (2 GB).
17
const MINIMUM_MODULE_SIZE: Size = Size::kibi(250);
0 commit comments