Re:PHP filter_var shenanigans
by viraptor on Monday March 28, 2022 @06:13AM
(#30828988)
I think that classifies as exceptionally well. You get 1000x compression and when trying to send a compressed payload, the issue of "the server may time out the connection" pretty much goes away. 4MB is trivial to send from almost anywhere - to hit the 30s timeout, you'd need to go slower than 137KB/s.
[ Parent
| on HN ]
Re:PHP filter_var shenanigans
by Dylan16807 on Monday March 28, 2022 @01:25PM
(#30833028)
It could trivially enable millions or billions to 1 compression, though. It just needs the option of a longer length field. With even a single megabyte of repeated data, it has to split it into four thousand chunks. That's not exceptional in my book.
I'll call it exceptional when it can encode any real-drive-size repeated-character file into the size of a tweet.