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
Currently Regexp.Find and Regexp.FindString allocates memory. This allocation may be easily removed - see the CL. Allocation-free Regexp.Find* functions work a bit faster comparing to the current implementation:
name old time/op new time/op delta
Find-4 345ns ± 0% 313ns ± 1% -9.13% (p=0.000 n=9+9)
FindString-4 338ns ± 1% 312ns ± 0% -7.88% (p=0.000 n=10+9)
name old alloc/op new alloc/op delta
Find-4 16.0B ± 0% 0.0B ±NaN% -100.00% (p=0.000 n=10+10)
FindString-4 16.0B ± 0% 0.0B ±NaN% -100.00% (p=0.000 n=10+10)
name old allocs/op new allocs/op delta
Find-4 1.00 ± 0% 0.00 ±NaN% -100.00% (p=0.000 n=10+10)
FindString-4 1.00 ± 0% 0.00 ±NaN% -100.00% (p=0.000 n=10+10)
The text was updated successfully, but these errors were encountered:
Currently
Regexp.Find
andRegexp.FindString
allocates memory. This allocation may be easily removed - see the CL. Allocation-freeRegexp.Find*
functions work a bit faster comparing to the current implementation:The text was updated successfully, but these errors were encountered: