64-Byte Alignment
Modern CPUs fetch data from RAM in “Cache Lines”. A typical cache line is 64 bytes. If your data straddles two cache lines (e.g., bytes 60-68), the CPU must fetch two lines to read one integer. This causes a “Cache Miss” or a double-fetch penalty. ZON aligns structures to 64 bytes. This ensures that when the CPU fetches a structure, it likely gets the entire hot path of data in a single cycle.Relative Offsets
Traditional pointers (64-bit memory addresses) are invalid when you send a file to another computer. ZON uses 32-bit Relative Offsets.- Position Independent: The file can be loaded anywhere in memory (mmap).
- Compact: 32-bit pointers save 50% space vs 64-bit pointers.
