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
For me, String.prototype.startsWith is about 2 times faster. Nice finding, can I ask you to prepare a PR? Or I can make it then include you as a co-author.
adblocker/packages/adblocker/src/utils.ts
Line 69 in 34ec18d
Benchmark.
On both modern Chrome and modern Firefox,
fastStartsWith
is always consistently slower.I can help create a PR migrate from the
fastStartsWith
with the nativestartsWith
.The text was updated successfully, but these errors were encountered: