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

Vectorize WGSR functions to improve performance #120

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

patrickbarks
Copy link

Hi @ernestguevarra, I've been using the zscorer package as part of a malnutrition study, and just wanted to say thanks for your work! It's been very useful.

As our dataset grows (we're currently at about 140k rows) the execution time of addWGSR() is becoming one of the slow points in our data pipeline, so I've spent some time trying to improve the performance by vectorizing getWGSR(). The vectorized version reduces the computation time on my computer from about 6.5 minutes to less than 1 second, at least for our particular computation.

If you're interested in incorporating these changes, I'd be happy make any additional updates you suggest, or if not no problem, we can just work from our own fork. Thanks!

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

Successfully merging this pull request may close these issues.

1 participant