You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
break and span have specialized RULES in terms of breakByte and spanByte that enable them to lean on the power of elemIndex (and hence transitively on the power memchr).
However, there are no equivalent rules in place for takeWhile (x ==), takeWhile (== x), dropWhile (x ==), dropWhile (==x), takeWhile (x /=), takeWhile (/= x), dropWhile (x/=) and dropWhile (/= x), which are in turn implemented on top of findIndexOrEnd, and hence follow a slower path, despite returning less stuff.
The text was updated successfully, but these errors were encountered:
break
andspan
have specializedRULES
in terms ofbreakByte
andspanByte
that enable them to lean on the power ofelemIndex
(and hence transitively on the powermemchr
).However, there are no equivalent rules in place for
takeWhile (x ==)
,takeWhile (== x)
,dropWhile (x ==)
,dropWhile (==x)
,takeWhile (x /=)
,takeWhile (/= x)
,dropWhile (x/=)
anddropWhile (/= x)
, which are in turn implemented on top offindIndexOrEnd
, and hence follow a slower path, despite returning less stuff.The text was updated successfully, but these errors were encountered: