Let’s say I have an array of 100 random integers values.
Instead of storing them plainly as they are, I can instead store the first, and put the distance between each consecutive integer.
How is this method called ?
I know this method seems completely worthless, but it could be useful for storing 3D model data, where consecutive vertices stored next to each other actually are very close: instead of using 32 bits, I could use a array of 8 bit integer.
I believe you’re looking for delta encoding: