Skip to content

Conversation

@jmert
Copy link
Owner

@jmert jmert commented Nov 11, 2022

Replaces the vector of tuples that has been used in the past.

When I attempted this prior to the work of #8, generating the NamedTuple had a significant (measurable) impact on the performance benchmark described in #8. With that PR finished, though, generating the named tuple no longer has a large impact, so it's probably worth doing to enable a larger-range of type-inferrable downstream processes (such as demonstrated in the new tests).

Closes #7 (specifically #7 (comment))

@codecov
Copy link

codecov bot commented Nov 11, 2022

Codecov Report

Merging #10 (dd9b303) into master (7b3874d) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #10      +/-   ##
==========================================
- Coverage   99.35%   99.34%   -0.01%     
==========================================
  Files           1        1              
  Lines         154      153       -1     
==========================================
- Hits          153      152       -1     
  Misses          1        1              
Impacted Files Coverage Δ
src/BitFlags.jl 99.34% <100.00%> (-0.01%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@jmert jmert merged commit 2378d5d into master Nov 11, 2022
@jmert jmert deleted the namemap_namedtuple branch November 11, 2022 20:27
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.

Convert into a struct or named tuple

2 participants