How implement encoding with dictionary?
I have buffer buf, current position ptr and my string buf[ptr]...buf[ptr+len-1] = buf[prev]..buf[prev+len]
How fast find prev position for ptr positon? Hashes are helpful in this cases?