79326152

Date: 2025-01-03 10:29:03
Score: 0.5
Natty:
Report link

I want to use a custom allocator to get rid of dynamic memory overhead. A static const vector is statically initialized and never freed. Same with static const strings.

E.g. current C++ libraries to generate perfect hashes are all using dynamic memory, with insane memory and deserialization overhead. Whilst their much faster C counterparts (gperf, nbperf, or unicode libraries) create static const tables in C, which the compiler can further optimize.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • High reputation (-1):
Posted by: rurban