aws / aws-sdk-cpp

AWS SDK for C++
Apache License 2.0
1.98k stars 1.06k forks source link

Compute enum hashes at compile time #2701

Closed SergeyRyabinin closed 8 months ago

SergeyRyabinin commented 1 year ago

Issue #, if available: HashString is called 254 times when S3 shared object is loaded at the static init stage Description of changes: Use constexpr to calculate this values at the build time. HashString will be called only 28 times when loading a core+s3 libs. Check all that applies:

Check which platforms you have built SDK on to verify the correctness of this PR.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.