Skip to content

Commit

Permalink
reduce reserved lenght of memory mapped files in 32 bits
Browse files Browse the repository at this point in the history
  • Loading branch information
ufoscout committed Jan 26, 2024
1 parent daba448 commit e15557a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ic-stable-structures/src/memory_mapped_files/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const WASM_PAGE_SIZE_IN_BYTES: u64 = 65536;
#[cfg(not(target_pointer_width = "32"))]
const DEFAULT_MEM_MAP_RESERVED_LENGTH: usize = 1 << 40; // 1 TB
#[cfg(target_pointer_width = "32")]
const DEFAULT_MEM_MAP_RESERVED_LENGTH: usize = 1 << 28; // 256 MB
const DEFAULT_MEM_MAP_RESERVED_LENGTH: usize = 1 << 20; // 1 MB

/// Memory manager that uses one memory mapped filer per one memory id.
pub struct MemoryMappedFileMemoryManager {
Expand Down

0 comments on commit e15557a

Please sign in to comment.