I found that the Rust compiler was not inlining the methods to_array and as_array_ref, which are extremely thin wrappers around cast functions and should in theory always be inlined. The lack of inlining was also preventing certain code optimizations that the compiler would normally perform.
I found that the Rust compiler was not inlining the methods
to_array
andas_array_ref
, which are extremely thin wrappers around cast functions and should in theory always be inlined. The lack of inlining was also preventing certain code optimizations that the compiler would normally perform.