On Wednesday, 22 April 2020 at 20:27:12 UTC, Steven Schveighoffer
wrote:
Just wanted to throw this out there on a slow day. I wrote this
little utility to generate static lookup tables, because using
an AA is too expensive for something like e.g. looking up
database row data by column name.
It's very crude, but very short and sweet. Hopefully people
find a use for it.
Let me know if you have any requests or find any bugs on github.
https://code.dlang.org/packages/lookuptable
-Steve
Nice.
For the indexLookup you can also use
https://github.com/skoppe/perfect-hash