Little context to my problem.
I was using string as a kay to uniquely identify one of many hundred thousands of objects.
But for reasons unnecessary to mention, I had to drop them.
I wanted to use Int32, however I found out I might run out of incremental ID. Not because of amount of objects in scene, but because of how many unique items are spawned and destroyed.
I wanted to use Int64, but then I found out it would be insanely costly memory wise with massive Dictionaries.
So my question is whether there is an already beaten path on counting using numbers, small caps and big caps letters.
0,
1,
2,
3,
âŚ
9,
a,
b,
c,
âŚ
A,
B,
C,
D,
E,
F,
G,
âŚ
Z,
00.
01,
02,
âŚ
0a,
0b,
0c,
âŚ
Ac,
âŚ
Bd,
ZZ,
000
This would make ID significantly shorter as well as spare memory.
I can fit many more IDs in this format than integer.
Not to mention integer is limited, whereas string can relatively go on forever.
I need something that would be painful for performance of my game. I wanted to search for it, but I donât even know what to search for because I donât know how to call this thing.
Iâve managed to find a single something about C++ here: c++ - How to Loop program that counts, digits and Letters? - Stack Overflow
But thatâs not a thing I can use with Unity. There are a couple Python and Matlabs, but I canât program in either. I tried to find C# equivalents but I got questions about parsing (and different looping of) the alphabet instead.