Commit graph

3 commits

Author SHA1 Message Date
Ivan Molodetskikh
68a629d79a Fix new Clippy warnings 2024-06-18 11:01:14 +02:00
Christian Meissl
858816b2be bench: add benchmark for opaque regions 2024-06-11 20:05:07 +02:00
Ian Douglas Scott
fe24d1bcd0 Use a thread-local for thread ID in UserDataMap::get
Profiling suggests the compositor was spending a surprising amount of
time getting the thread ID. It seems `thread::current().id()` is a bit
slow. Calling this once and storing the result in a thread-local seems
to make the performance roughly match the thread-safe variant, if the
benchmark added here is accurate.
2023-05-17 16:00:57 -07:00