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

Linalg: Reduce allocations in triangular tests #53634

Merged
merged 2 commits into from
Mar 9, 2024
Merged

Conversation

jishnub
Copy link
Contributor

@jishnub jishnub commented Mar 7, 2024

Reuses a pre-allocated matrix in tests to avoid allocating a fresh matrix in every call.

@jishnub jishnub added test This change adds or pertains to unit tests linear algebra Linear algebra labels Mar 7, 2024
@jishnub jishnub requested a review from ViralBShah March 7, 2024 16:56
Copy link
Member

@ViralBShah ViralBShah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to save the allocations. Just out of curiosity, does it have a measurable impact? Any time saved in Linalg tests has tremendous CI benefits!

@jishnub
Copy link
Contributor Author

jishnub commented Mar 7, 2024

There's barely any performance impact in CI, as that's dominated by compilation time. It might help in local testing, though, if one is running the tests repeatedly

@jishnub jishnub merged commit 53048b2 into master Mar 9, 2024
5 of 7 checks passed
@jishnub jishnub deleted the jishnub/tritestsalloc branch March 9, 2024 10:44
mkitti pushed a commit to mkitti/julia that referenced this pull request Apr 13, 2024
Reuses a pre-allocated matrix in tests to avoid allocating a fresh
matrix in every call.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linear algebra Linear algebra test This change adds or pertains to unit tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants