4 ms·
> but does so more efficiently from an algorithmic point of view. He is using a hash table rather than a linear search after all. Most other compression implem
by RaisingSpear 4y ago
> but does so more efficiently from an algorithmic point of view. He is using a hash table rather than a linear search after all.
Most other compression implementations also use a hash table, at least on the faster settings.
They may switch to something like a hash chain on slower settings, but that doesn't really change asymptotic complexity as it just evaluates more matches.
I don't think any implementation does a straight linear search across the window, as that's just stupidly slow, though maybe a "give me the best compression, I don't care about speed" compressor might.