julia
0371bf44 - In string search, replace unsafe_wrap with codeunits (#48275)

Commit
3 years ago
In string search, replace unsafe_wrap with codeunits (#48275) Currently, `findfirst(::String, ::String)` will eventually end up calling `unsafe_wrap` on both arguments, in order to use Julia's generic vector search functions. This causes unnecessary allocations. This PR replaces use of `unsafe_wrap` with `codeunits`, removing the allocation. See also: #45393
Author
Parents
Loading