About DataStore and Text Compressions

How does Roblox store its data in DataStore and can someone explain how I can utilize stuff like Golomb Coding for text compression? I essentially want to write my own text compression and decompression algorithm

I’m not familiar with Golomb coding. If it’s similar to Huffman coding, where each character is encoded by a different bit pattern, you need to have exact control over what bits are written to the data store. There is no built in way of doing so, but the BitBuffer module is made for this exact purpose. I lets you write individual bit sequences and eventually outputs it as a valid utf8 string (base64 IIRC) which can be saved to a data store.

1 Like