In Javascript I have a large dictionary consisting only of strings with the letters a to z, A to Z en 0-9. Because these are 62 characters, each character would only need 6 bits.
I read somewhere that Javascript uses at least 2 bytes per character, so I thought I could save a lot of memory/diskspace by compressing the whole dictionary into a smaller representation, maybe binary or integer.
Could this be done? I guess I need 2 functions, to convert the strings and vice versa.
Any ideas?