-
Notifications
You must be signed in to change notification settings - Fork 79
Get rid of sleep pauses in process #144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Do we really need to have a sleep of 3 seconds to stop this race condition? Completely removing the sleep might break something. But if we put it at 1 second it will run a little bit faster if it parses without the |
Personally I am yet to see something break with quick run. And yet to hear someone coherently remember and explain which race condition this is supposedly handling. :) |
I have no objection to removing the sleep and I have never had any problems with quick runs, it's just that I forget the quick flag sometimes. |
Ahoy. So, originally, @rmccue had built the first version of this parser, and for some reason I can't remember, I didn't think it was very good, so I built my own version inspired by Ryan's, for some stuff on WordPress.com. I introduced the sleeps to work around some interesting issues that the parser had, at that point in time, on the WordPress.com environment (I ran it on a huge chunk of code to test it, and it caused a lag in the replication of that database, which awoke the scary systems team!). My fork was eventually merged back into this project or replaced it (again, I can't remember), and that's the story of the sleep. |
Attached PR: #200 simply changes the |
The |
Bringing something like that over here would be reasonable. (You'll never replicate any issues that this was trying to solve, unless you're using a replicated mysql environment) |
I tried several times and cannot trace back to technical reasons for
sleep( 3 )
every ten items.Can someone explain what exactly it is doing? Farthest I got @rmccue said @paulgibbs (?) added it to handle race condition (??).
The text was updated successfully, but these errors were encountered: