-
Notifications
You must be signed in to change notification settings - Fork 11
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
see if we get speedup by not using full tau matrix #83
Comments
Results of quick implementation and test on GTEx "strong" data, Results will probably not be as dramatic for Calls used: |
From profiling the above backfit, it seems like we could get a further speedup of 25% by just skipping the subsetting of |
@willwerscheid That's great! But keep in mind there is often a tradeoff between optimizing code and keeping code simple. If you have both, that is great. Also, optimizing memory is way more important, because memory is a fixed constraint, but time isn't (unless you have a conference deadline). |
@pcarbo Thanks, great point. The redundancies I've identified above should also help a bit with memory (a lot of unnecessary copies) when that becomes an issue. But there are probably other things we can do as well. |
When making these changes, it will be helpful to exploit the fact that |
Tests of suggested changes here. |
For example, we might get faster updates by using just a scalar (rather than an n x p matrix) when
var_type = "constant"
. Try with "constant" first to see what difference it makes.The text was updated successfully, but these errors were encountered: