Asia & global innovation
Sign inJoin us
TechStar AsiaIdeas without bordersAsia & global innovation
← Latest news

From Dev.to

One regex change made path-to-regexp up to 41% faster

path-to-regexp turns routes such as /users/:id into regexes for Express. It has 312M npm downloads a week. One change to its escape step made stringify up to 41% faster. str.replace(/[.+*?^${}()[\]|/\...

Read the full report at Dev.to ↗