We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
reinterpret(Type, v)
-O1
$ julia -O2 -e 'using BenchmarkTools; @btime reinterpret.(NTuple{48,UInt8}, $([(UInt128(1), UInt128(2), UInt128(3)) for _ in 1:1000]));' 2.719 μs (2 allocations: 46.92 KiB) $ julia -O1 -e 'using BenchmarkTools; @btime reinterpret.(NTuple{48,UInt8}, $([(UInt128(1), UInt128(2), UInt128(3)) for _ in 1:1000]));' 15.292 μs (2002 allocations: 171.92 KiB)
We are discussing to extend bitcast to support non-padded (packed) isbits types, and switching to that instead. Draft PR for that here: #57227.
bitcast
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We are discussing to extend
bitcast
to support non-padded (packed) isbits types, and switching to that instead.Draft PR for that here: #57227.
The text was updated successfully, but these errors were encountered: