Icona per bachidebrujas | Capçalera per @thirteight.bsky.social
Good morning ❤
🐘 https://mastodon.social/@frikinin
Most compression libraries allow for a level compression setting. The higher, the more compressed it ends up, but the slower it runs; with the default setting usually being a middle ground. Perhaps a higher compression level might have done what you're pointing at.
Most compression libraries allow for a level compression setting. The higher, the more compressed it ends up, but the slower it runs; with the default setting usually being a middle ground. Perhaps a higher compression level might have done what you're pointing at.
x6 <-31; x6 <-6
or
x1 <- 27; x11 <-1
too, btw. I'm too lazy to calc it, but since numbers are encoded in a way that uses less bits the smaller the number is; these options might be less efficient [4/4]
x6 <-31; x6 <-6
or
x1 <- 27; x11 <-1
too, btw. I'm too lazy to calc it, but since numbers are encoded in a way that uses less bits the smaller the number is; these options might be less efficient [4/4]
x6 <-31 - go back thirty-one chars and copy six chars in a row
And now that we have 'p' at the end of the buffer, we can use "the trick"
x6 <- 1 - go back one character and copy six
[3/4]
x6 <-31 - go back thirty-one chars and copy six chars in a row
And now that we have 'p' at the end of the buffer, we can use "the trick"
x6 <- 1 - go back one character and copy six
[3/4]
o - add a literal 'o'
x24 <- - go back one char and copy 24 chars
it's the same as before
Now, we want to encode 12 'p' chars. The longest sequence is 6 'p' long, and we can't use the trick because the last char is a 'o' [2/4]
o - add a literal 'o'
x24 <- - go back one char and copy 24 chars
it's the same as before
Now, we want to encode 12 'p' chars. The longest sequence is 6 'p' long, and we can't use the trick because the last char is a 'o' [2/4]
So, in this case:
p - add a literal 'p'
x5 <-1 - go back one char and copy 5 chars [1/4]
So, in this case:
p - add a literal 'p'
x5 <-1 - go back one char and copy 5 chars [1/4]