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

So much faster! #76

Open
kaceyaurum opened this issue May 14, 2018 · 1 comment
Open

So much faster! #76

kaceyaurum opened this issue May 14, 2018 · 1 comment
Labels

Comments

@kaceyaurum
Copy link
Contributor

mdsynthesis is now so much faster!

import numpy as np
import time
import mdsynthesis as mds
start = time.time()
b = mds.discover('sims/')
discovertime = time.time()
ddiscover = discovertime - start
startresna = time.time()
c = b[[r=='N/A' for r in b.categories['resolution']]]
resnatime = time.time()
dresna = resnatime - startresna
startres25 = time.time()
d = c[[r <= 2.5 for r in c.categories['resolution']]]
res25time = time.time()
dres25 = res25time - startres25

results in

ddiscover = 1.9889791011810303
dresna = 3.814697265625e-05
dres25 = 1.811981201171875e-05
totaltime = 1.9890391826629639

(The same timing when run with the released mdsynthesis still never finished after a few days now.)

@orbeckst @dotsdl

@dotsdl
Copy link
Member

dotsdl commented Jun 26, 2018

Glad to see the redesign had the desired effect! Globbing is expensive! :D

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

No branches or pull requests

3 participants