Skip to main content

Module match_model

Module match_model 

Source
Expand description

MatchModel – ring buffer + hash table for longest match prediction.

Phase 5: Multi-candidate match finding with extended length verification. Finds up to 4 candidates via different hash functions, verifies each, and uses the one with the longest actual match length.

CRITICAL V2 LESSONS:

  • Rolling hash must NOT be cumulative
  • Confidence ramp must be linear (not step function)
  • Length tracking must reset on mismatch

Structs§

MatchModel
Match model: finds longest match in history, predicts from continuation.