Remove unsafe from array_ref! macro - #24
Conversation
burdges
commented
Jan 18, 2023
Anyone cleaver regression tests done yet? If it's slower in niche cases, then maybe one should've a |
nabilwadih
commented
Jan 18, 2023
@burdges thanks for the suggestion! I wrote a simple benchmark here: https://github.com/nabilwadih/arrayref/pull/1/files (open to suggestions on anything else you would like to see benchmarked) |
ejpcmac
commented
Mar 20, 2024
It seems removing the unsafe block has quite a big impact in term of size: on a I’ve come to discover this wonderful crate because I was trying to find a way to split an array of |

unsafe is no longer needed here since this is now supported in stable rust, the panic behavior is the same as before since it would panic anyways if the slice index was out of bounds