Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Spinning around: Please don't – Common problems with spin locks. Parent comment
You're not including data in your discussion of this topic. Your post included zero data.
My post on WTF locks has tons of data.
So, I'm not assuming; I'm observing.
> And I've seen the issue in hundreds of captures using a profiler. I suppose we just have a different definitions of the what "worse performance" is.
Nobody cares what you saw in the profiler.
What matters is the performance users experience.
By any metric of observable performance, yielding is the optimal way of spinning.
There are no comments on this comment yet.
You're not including data in your discussion of this topic. Your post included zero data.
My post on WTF locks has tons of data.
So, I'm not assuming; I'm observing.
> And I've seen the issue in hundreds of captures using a profiler. I suppose we just have a different definitions of the what "worse performance" is.
Nobody cares what you saw in the profiler.
What matters is the performance users experience.
By any metric of observable performance, yielding is the optimal way of spinning.