Skip to content

Commit

Permalink
In small data realm, exceeding 4MiB seems more likely than 256 chars.
Browse files Browse the repository at this point in the history
  • Loading branch information
c-blake committed Jun 26, 2024
1 parent ab12d9e commit 7912e2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ucl.nim
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
when not declared(stdin): import std/[syncio, formatfloat]
import std/[hashes, times], cligen, cligen/[mslice, osUt], adix/oats

const bLen {.intdefine.} = 10 # <1024 long; RT limits nicer but harder
const bOff {.intdefine.} = 22 # <4MiB UNIQUE line data
const bLen {.intdefine.} = 8 # <256 long; RT limits nicer but harder
const bOff {.intdefine.} = 24 # <16MiB UNIQUE line data
type
Count {.packed.} = object # Dense-ish hash Count type
when defined hashCache: hc: uint32 # 4B|8B per cell
Expand Down

0 comments on commit 7912e2a

Please sign in to comment.