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 any type from struct in IOExample and Trace #17

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

Sebastien1999
Copy link
Contributor

Having Any type in a struct is not good for performance because the Julia compiler will use indirection instead of holding the data directly. By declaring the input and output types in the struct, we avoid the use of Any.

Copy link

codecov bot commented Nov 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (eef2222) to head (2da5364).
Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #17   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           14        14           
=========================================
  Hits            14        14           

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

@ReubenJ ReubenJ self-requested a review November 14, 2024 14:12
- Vector -> AbstractVector
- Remove extraneous type parameters for IOExample and Trace
Copy link
Member

@ReubenJ ReubenJ left a comment

Choose a reason for hiding this comment

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

Great! Just made one extra change to the AbstractSpecification type. Nice work 👍

@ReubenJ ReubenJ merged commit 9d06378 into master Nov 14, 2024
5 checks passed
THinnerichs added a commit that referenced this pull request Nov 15, 2024
`v0.2`: Breaking changes introduced in #17 by adding type parameters
@ReubenJ ReubenJ deleted the refactor-any-type-from-struct branch December 12, 2024 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants