FixedSizeArrays.jl Showcase #62
giordano
started this conversation in
Show and tell
Replies: 2 comments
-
Adding vectors of
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Reshaping
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm starting this discussion to collect examples of how
FixedSizeArray
can be better (smaller generated code and/or faster) than standardArray
. I'll start with the example in theREADME.md
Simple function which can constant-propagate the size of the array
julia> code_llvm(h)
julia> versioninfo() Julia Version 1.12.0-DEV.1082 Commit 58c7186d19* (2024-08-22 02:53 UTC) Platform Info: OS: macOS (arm64-apple-darwin23.4.0) CPU: 8 × Apple M1 WORD_SIZE: 64 LLVM: libLLVM-18.1.7 (ORCJIT, apple-m1) Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores)
Beta Was this translation helpful? Give feedback.
All reactions