This commit is contained in:
JCW
2025-06-02 13:17:13 +01:00
parent af284bf23f
commit 0b29ff0bf7

View File

@@ -45,22 +45,8 @@ private:
// requires 64-bit std::size_t
static_assert(sizeof(std::size_t) == 8, "");
struct state_wrapper
{
XXH3_state_t* state;
state_wrapper()
{
state = XXH3_createState();
}
~state_wrapper()
{
XXH3_freeState(state);
}
};
// XXH3_state_t* state_;
#if PROFILING
inline static thread_local state_wrapper wrapper{};
std::size_t totalSize_ = 0;
std::chrono::nanoseconds duration_{};
std::uint64_t cpuCycles = 0;