twhl-community / halflife-unified-sdk

Half-Life Updated SDK with Opposing Force and Blue Shift merged in, along with other improvements. Check README.md for more information.
Other
143 stars 24 forks source link

Consider using alternatives to standard library types #536

Open SamVanheer opened 11 months ago

SamVanheer commented 11 months ago

Consider using alternatives the C++ standard library types.

The following types are known to have performance issues that can be avoided using replacements: Type Alternative
unordered_map See this benchmark for a starting point: https://martin.ankerl.com/2022/08/27/hashmap-bench-01/#benchmark-results-table
regex Boost.Regex

Make sure to test changes to ensure correctness.