Closed bigopon closed 7 years ago
Hi, from this Benchmark https://gist.run/?id=b06f276129f58ec3422e8886cddb9af4
Changing
if (/(^data-)|(^aria-)|:/.test(attributeName))
to
if (/(?:^data-)|(?:^aria-)|:/.test(attributeName))
could improve performance for around 20+%. But I'm not sure if micro opts like this are needed. Please close if not necessary.
Every little bit counts, especially in this package. We'll merge things like this all day long! Great PR!
Hi, from this Benchmark https://gist.run/?id=b06f276129f58ec3422e8886cddb9af4
Changing
to
could improve performance for around 20+%. But I'm not sure if micro opts like this are needed. Please close if not necessary.