mirror of
https://github.com/Smithay/smithay.git
synced 2024-09-28 03:21:14 +02:00
fe24d1bcd0
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. |
||
---|---|---|
.. | ||
benchmark.rs |