Closed nlevitt closed 5 years ago
From my experience its faster if we avoid raising the exception entirely.
Still, your suggestion is an improvement over the current situation and its very welcome!
From my experience its faster if we avoid raising the exception entirely.
Yeah it should be faster but I would be surprised if the difference is big enough to matter.
Also with the #121 approach there's a possibility of a race condition, at least there might be, it would take some analysis to be sure that there isn't. And there are other reasons that I prefer this approach.
In any case this has been an annoyance with warcprox for a long time, so thank you for making this fix happen!
I'm really happy to help. More improvements are pending :)
this is a slightly different approach to https://github.com/internetarchive/warcprox/pull/121