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

Add a few convenience utilities #71

Merged
merged 1 commit into from
Mar 8, 2020
Merged

Add a few convenience utilities #71

merged 1 commit into from
Mar 8, 2020

Conversation

timholy
Copy link
Contributor

@timholy timholy commented Mar 8, 2020

The main advantage these new predicates have is a small improvement in performance due to not needing to construct new objects for comparisons.

For Dicts of types, this switches to IdDict. This is both faster (particularly on construction), and safe for precompilation (see https://docs.julialang.org/en/latest/manual/modules/#Module-initialization-and-precompilation-1).

The main advantage these have is a small improvement in performance
due to not needing to construct new objects.

For Dicts of types, this switches to IdDict. This is both faster 
(particularly on construction), and safe for precompilation (see 
https://docs.julialang.org/en/latest/manual/modules/#Module-initialization-and-precompilation-1).
@codecov-io
Copy link

codecov-io commented Mar 8, 2020

Codecov Report

Merging #71 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #71      +/-   ##
==========================================
+ Coverage   92.91%   92.92%   +0.01%     
==========================================
  Files          26       27       +1     
  Lines        2836     2841       +5     
==========================================
+ Hits         2635     2640       +5     
  Misses        201      201
Impacted Files Coverage Δ
src/costs.jl 84.9% <ø> (ø) ⬆️
src/LoopVectorization.jl 100% <ø> (ø) ⬆️
src/constructors.jl 97.18% <100%> (ø) ⬆️
src/predicates.jl 100% <100%> (ø)
src/graphs.jl 85.07% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a31acc4...e859b41. Read the comment docs.

@chriselrod chriselrod merged commit 290c7a3 into JuliaSIMD:master Mar 8, 2020
@chriselrod
Copy link
Member

This looks great, thanks for these improvements!
I wasn't aware of the possible danger of using a Dict for DataTypes or Functions.

@timholy timholy deleted the teh/codeperf branch March 8, 2020 22:08
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