For self education purposes:
So ASCII puts every character to a binary representation right? A = 65 = 01000001, etc. I was curious though, if you wanted to temporarily switch the variable to something different to conserve space, is there a simple way to go about doing that? Like if I had a project where I only needed 4 letters, could I store, AR as 01, RA as 11, SQ as 00, and QS as 10? That way if I need the data read back it's a hell of a lot faster. I did a little paper math and it would be up to 20 times faster.
Currently I'm using primarily python, but I have experience in C++ as well. If anyone has thoughts, I'd appreciate answers using those languages with built in functions if they exist. But like I said, I'm mostly just curious. If it needs to be done at close to hardware level that's cool.
Thanks all!!!