Skip to content

orconce: Use Win32 once implementation

amyspark requested to merge amyspark/orc:orconce-hide-body into main

Hi all,

This MR supersedes !112 (closed) after some benchmarking and profiling with MSVC 17.9.0 preview 1 and Clang 17.0.4 (UCRT64). I couldn't override the original MR so am filing a separate one.

(from !112 (closed))

InitOnceBeginInitialize() is slightly faster than the manual implementation. Note that MSVC std::call_once() is implemented by using the Win32 API as well.

(my own insights)

Closes !112 (closed)

Merge request reports