IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo function

hisparse_state_bytes

def hisparse_state_bytes[page_size: Int, hot_pages: Int, num_groups: Int, max_misses: Int, hash_capacity: Int]() -> Int

Returns the bytes a request's state page needs.

Parameters:

  • ​page_size (Int): Rows per cache page.
  • ​hot_pages (Int): Pages in the hot buffer.
  • ​num_groups (Int): Indexer layers that keep their own LRU state.
  • ​max_misses (Int): Most distinct host-only selections per call.
  • ​hash_capacity (Int): Entries in the per-call selection hash.

Returns:

Int: The state page's byte size, which must not exceed a cache page.

Was this page helpful?