Skip to content

Poor man's delta compression for .xopp files (in Python) #5098

Answered by eldipa
charstorm asked this question in Show and tell
Discussion options

You must be logged in to vote

Nice hack! A previous optimization similar for reducing the digits was merged a few years ago and the idea of using delta compression is definitely the way to go.

In a analysis that I did there is a plot under the title "Talking of strokes, how are theirs x-y coords distributed?" It is shown that all the x and y coordinates are in the range [0-800] so we are dealing with always small numbers very similar to each other, hence delta encoding works very nice.

You may want to go a little deeper with frame of reference. Delta encoding is definitely something that will be implemented in the new file format (a work in progress still).

And about the .xopp file format, I documented it a few months…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by charstorm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants