Speeding up the JavaScript ecosystem, one library at a time
Heh, so many of these fixes boil down to "I'm converting this thing to a string and then searching the string".  And, funnily, I've often stumbled on this problem with Java programmers.  They'll take a nice rich type, turn it into a string and then spend a bunch of code/time turning that string back into something else.<p>Super wasteful when you start thinking about what all that means.  Rather then having a representation that neatly fits into registers, now you have this blob of memory that has to be linearly searched to pull information from it.  Just. yuck.<p>And why do devs do this?  TBH, I really don't know.  Because regexes are easier to understand? IDK.