reducing iterations in ExtendUrlPatternDispatcher