dysfun@treehouse.systems ("gaytabase") wrote:
for example, i use a slightly racy queue, because it's so much faster on average. the downside is i have to detect the race and handle it. and i calculated that it's going to happen about 0.1-0.2% of the time. sure, that is absolutely a tiny fraction of the time and you'll probably make it back on all the other executions, but on the other hand, a small percentage are destined to wait a really long time (up to milliseconds!). and we just spinloop through this usually!