onnxruntime
7d8dea9f - Reduce Heap contention in StringNormalizer (#20182)

Commit
1 year ago
Reduce Heap contention in StringNormalizer (#20182) ### Description <!-- Describe your changes. --> Re-use pre-computed and pre-allocated buffers for UNICODE conversions. Make sure we do not introduce unnecessary intermediate `std::string` instances. Create a Utf8Generic converter for use with non-Windows platforms. ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> This reduces heap contention in P1 customer. ![image](https://github.com/microsoft/onnxruntime/assets/11303988/fd39fb01-7361-47d2-8f83-69dbc3bbc65c)
Author
Parents
Loading