Skip to content

Commit

Permalink
fix: partial fix of #227 for iPhone 7s (#229)
Browse files Browse the repository at this point in the history
(hopefully) fixes a part of #227 for iPhone 7 compatibility by reducing
the maximum map size (which isn't really a fix, but rather a temporary
workaround).
  • Loading branch information
GregoryConrad authored Jul 3, 2023
1 parent 38bcce0 commit fa2dcb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mimir/native/src/embedded_milli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type Dump = (MimirIndexSettings, Vec<Document>);
// Then, we find the maximum multiple of MAX_OS_PAGE_SIZE that is less than MAX_POSSIBLE_SIZE.
// MAX_POSSIBLE_SIZE complies with memory constraints imposed by iOS without extra entitlements.
const MAX_OS_PAGE_SIZE: usize = 16_777_216;
const MAX_POSSIBLE_SIZE: usize = 2_000_000_000;
const MAX_POSSIBLE_SIZE: usize = 1_500_000_000;
const MAX_MAP_SIZE: usize = MAX_POSSIBLE_SIZE - (MAX_POSSIBLE_SIZE % MAX_OS_PAGE_SIZE);

/// Defines what an embedded instance of milli should be able to do.
Expand Down

0 comments on commit fa2dcb9

Please sign in to comment.