Pillar 1 — Perfect Hash O(1): The Zero-Lookup Dispatcher
Your Kotlin Data Class
@GhostSerializationTerminal — KSP Outputready
> Press "Run KSP Compiler" to start...
Step 1 of 3 — Byte Packing (4 bytes → Int32)
Current field:—
Int32 (key)0
Byte 3 (bits 24-31)Byte 2 (bits 16-23)Byte 1 (bits 8-15)Byte 0 (bits 0-7)
0
0
0
0
Real formula (PerfectHashFinder.kt):
hash = ((key × 31 + len) >> 0) & 1023
hash = ((key × 31 + len) >> 0) & 1023
Byte Packing Walkthrough:
1. Nombre del campo: "—" (longitud = 0)
2. Conversión ASCII a Int32:
3. Valor final empaquetado (Int32): 0
ℹ️ En Kotlin, el compilador KSP asocia este número único al campo:
val H_— = 0