Store characters in memory

new topic     » topic index » view thread      » older message » newer message

Hello, I recently tried to store a lot of pics and utf-8 text in memory for quick access. So they are all small integers range from 0 to 255. Since integers are stored as 4-byte in Euphoria, it takes 200KB memory to store a 50KB pic, huge overhead.

So I tried to pack 3 integers into a big one (4 would become an atom), still they are 4/3 larger and it takes considerably time to "encode" and "decode" them. Is there some way they can be stored in compact form, like in the EDS?

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu