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

reduce allocation in Record array construction #114

Merged
merged 1 commit into from
Oct 23, 2024
Merged

reduce allocation in Record array construction #114

merged 1 commit into from
Oct 23, 2024

Conversation

Moelf
Copy link
Member

@Moelf Moelf commented Oct 23, 2024

#before 
julia> @b AwkwardArray.RecordArray((;x=AwkwardArray.PrimitiveArray([1,2,3])))
126.453 ns (7 allocs: 272 bytes)

#after
julia> @b AwkwardArray.RecordArray((;x=AwkwardArray.PrimitiveArray([1,2,3])))
18.722 ns (3 allocs: 144 bytes)

Copy link

codecov bot commented Oct 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.09%. Comparing base (6ba1c4a) to head (68a24a2).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #114   +/-   ##
=======================================
  Coverage   76.09%   76.09%           
=======================================
  Files           5        5           
  Lines        1740     1740           
=======================================
  Hits         1324     1324           
  Misses        416      416           

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

@Moelf Moelf merged commit 1af9378 into main Oct 23, 2024
8 checks passed
@Moelf Moelf deleted the reduce_alloc branch October 23, 2024 14:41
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.

1 participant