Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
There seems to be a lot of redundant regexp construction when
A new layer is created for each middleware and the same path converted to a
Here is a benchmark for a pathological case. When
Is there any reason why the regexp objects cannot be shared across all the layers? If all the layers share the regexp of the first layer, the same benchmark runs in only 7ms. The patch is quite hacky and hence I have not submitted a PR, but I would like to confirm if my assumptions are correct. Please let me know if I have misunderstood something.
Yea, and on top of that, a patch that would let people use whatever version of