getenvW: Take advantage of sliceTo/indexOfScalarPos optimizations

Both sliceTo and indexOfScalarPos use SIMD when available to speed up the search. On my x86_64 machine, this leads to getenvW being around 2-3x faster overall.

Additionally, any future improvements to sliceTo/indexOfScalarPos will benefit getenvW.
66dcebcc76Ryan Liptak committed on 3/22/2025, 11:02:58 PMparent78ecf3b
1 file changedLine totals unavailable