3 ms·
Clever! With bit of more complexity in generation, you can shave off good number of bytes by using shorter id's, I think? 3 characters per id in base36 should
by nodoodles 3y ago
Clever! With bit of more complexity in generation, you can shave off good number of bytes by using shorter id's, I think?
3 characters per id in base36 should do, in reality even less on average, starting from #0. >100KB reduction?
- p4bl0 3y agoI just saw your comment! I was given the same idea on Mastodon. I did it and got down to 412KB. I'm using a custom base74 so that IDs are max 2 chars. 74 + 74*74 = 5550 which is just above the 5478 game states that have to be represented. See https://news.ycombinator.com/item?id=38275082 https://news.ycombinator.com/item?id=38275082