Because _match method is just add captures to the stack and do not change already matched
We can just purge newly added captures to the stack when route is not matched
Motivation
This is faster to purge added elements in compare to replace whole stack by snapshot
Summary
Because
_match
method is just add captures to the stack and do not change already matchedWe can just purge newly added captures to the stack when route is not matched
Motivation
This is faster to purge added elements in compare to replace whole stack by snapshot
References
related to this commit