This is something Spring MVC already does but WebFlux does not. It maintains a lookup by path for mappings that don't have any pattern syntax. For a given request path, if the lookup contains a match then we don't need to check all patterns.