Click here to Skip to main content
15,887,477 members
Articles / General Programming / Optimization

An Efficient String to Unsigned int ID Struct

Rate me:
Please Sign up or sign in to vote.
4.58/5 (5 votes)
22 Jun 2022MIT5 min read 9.7K   66   8  
C++ optimization for map using string key among others
This article presents the structure used in the Kigs framework to efficiently convert strings (std::string, const char *) to unsigned int IDs with the intention of using them as keys, generally for unordered_map structures.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
Software Developer (Senior) LVCim
France France
Senior software developer.
Kigs framework is an educational/experimental/RAD open source C++ framework.

Comments and Discussions