Skip to content
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

time.sleep takes a long time (~15ms) on Win10 python 3 #18

Open
vhaasteren opened this issue Nov 5, 2018 · 0 comments
Open

time.sleep takes a long time (~15ms) on Win10 python 3 #18

vhaasteren opened this issue Nov 5, 2018 · 0 comments

Comments

@vhaasteren
Copy link
Member

It seems that the time.sleep(0.000001) hack has some unwanted consequences on Windows10 in Python 3. A simple

%timeit time.sleep(0.000001)

reveals that this takes ~15ms on my workstation, which is going to take up the bulk of execution time for fast distributions. Decreasing the fraction of time does not help. Since this is related to the MPI issue, I can imagine that for under Windows the trick is not even necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant