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

inline sub_axes_map(T::Type{<:SubArray})) #28

Merged

Conversation

ranocha
Copy link
Contributor

@ranocha ranocha commented Apr 18, 2023

This fixes some serious performance issues for us in Trixi.jl increasing the runtime up to two orders of magnitude.

Another option would be to remove the @nospecialize in the method definition I changed here.

It is hard to provide a good test for it since it is deeply nested, involves LoopVectorization.jl, and is related to nasty issues such as JuliaLang/julia#35800 and JuliaLang/julia#45388

It would be great if we could merge this and make a new release of StaticArrayInterface.jl.

CC @sloede

@codecov
Copy link

codecov bot commented Apr 18, 2023

Codecov Report

Merging #28 (389a16d) into master (7a89884) will decrease coverage by 0.08%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #28      +/-   ##
==========================================
- Coverage   88.72%   88.65%   -0.08%     
==========================================
  Files          11       11              
  Lines        1313     1313              
==========================================
- Hits         1165     1164       -1     
- Misses        148      149       +1     
Impacted Files Coverage Δ
src/dimensions.jl 93.79% <100.00%> (ø)

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ranocha
Copy link
Contributor Author

ranocha commented Apr 19, 2023

The downstream CI failure

MethodError: no method matching vifelse(::Vec{8, Bool}, ::Mask{8, UInt8}, ::Mask{8, UInt8})

cannot be related to this PR

@ChrisRackauckas ChrisRackauckas merged commit 6a3b353 into JuliaArrays:master Apr 19, 2023
@ranocha ranocha deleted the hr/fix_performance_issue branch April 19, 2023 08:12
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.

2 participants