[Newbies] Compressing large arrays

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Mon Sep 30 16:30:54 UTC 2019


today I learned that I can use #byte64Encoded to compress ByteArrays (and #mimeDecodeToBytes: to uncompress it again).

However, I wonder whether there is an option to do the same for arrays that elements' are not limited to bytes. Concretely, I have got an array of integers in range (-20601 to: 20935), so I can map it to 6 or 8 bytes per value. Does Squeak support any way to compress such an array to a stream?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/beginners/attachments/20190930/f79ca6f0/attachment.html>

More information about the Beginners mailing list