rust-pgn-reader
rust-pgn-reader copied to clipboard
Compression with game phase
Extending the script for lichess-org/lila#4129. Added the method codes so the script is compatible to the Python script.
Hi. Could it be that we need three separate code books?
codes.txt is the output of the script.
So that's now 20.92 + 12.26 + 3.74 = 36.92 bytes per game, compared to the current 37.03. A very slight improvement.
I expected a bigger improvement. Is the improvement worth the added complexity?
Probably no. It's disappointing, but still good to have tried this approach.
We could still play with the cutoff points, but having seen these results, I wouldn't expect much. I guess it shows that the ordering heuristic does most of the heavy lifting, and that it isn't particularly sensitive to game phase.