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

Replace accidental slices with views #36

Merged
merged 1 commit into from
Feb 5, 2024
Merged

Replace accidental slices with views #36

merged 1 commit into from
Feb 5, 2024

Conversation

MasonProtter
Copy link
Member

I accidentally wrote A[inds] here instead of @view A[inds] or view(A, inds) resulting in some unnecessary allocations. Not a big difference compared to the overhead of spawning a task, but no reason not to take a view here.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b1e25f8) 90.24% compared to head (30e7343) 90.24%.
Report is 10 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #36   +/-   ##
=======================================
  Coverage   90.24%   90.24%           
=======================================
  Files           3        3           
  Lines          82       82           
=======================================
  Hits           74       74           
  Misses          8        8           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@carstenbauer carstenbauer merged commit 826506e into master Feb 5, 2024
8 checks passed
@carstenbauer carstenbauer deleted the view-patch branch February 5, 2024 11:35
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.

3 participants