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

Remove extraneous Allocations #2

Open
hv10 opened this issue Nov 27, 2024 · 0 comments
Open

Remove extraneous Allocations #2

hv10 opened this issue Nov 27, 2024 · 0 comments

Comments

@hv10
Copy link
Owner

hv10 commented Nov 27, 2024

If we make a copy of the input x first, we can then operate on that copy in-place using views.
I think the code I have written plays it too safe with the write-accesses to x - by creating the needed parts as new zero-initialized-arrays.

We may get away with not doing that and gaining some sizable speedups.

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