-
Notifications
You must be signed in to change notification settings - Fork 8
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
performance #17
Comments
The difference in allocations is mostly a red herring; if you first call Currently there is no specialized implementation for Try calling The remaining difference in performance is because If you want to fix this, here are three possible strategies (and they can be applied in combination):
I'm hesitant to even guess which of these would be easier to implement or more effective for your purposes. The first will be more effective (by far) for the problem you pose, but probably limited to one-dimensional objects. The second will also be really effective, readily extensible to higher dimensions, but applicable to range-indexing only. Applying The best option, of course, is to do all of them, but that would depend on your level of commitment to this problem. |
I wanted to implement a simple circular vector, and ended up finding major slowdown for accessing. Is this expected behavior:
is it just due to allocations? It doesn't seem to be the case for a regular
@view
which is non-allocatingSo should
@FFTView
be regarded more as convenience than performant, or is there a trick to using it safely?The text was updated successfully, but these errors were encountered: