Dear Spring Team, Thank you for your excellent work on Spring-WebMVC. The RequestMapping mechanism is well-designed and widely appreciated by developers. In a project with many variable-style APIs, I noticed performance bottlenecks in RequestMappingHandlerMapping due to its linear search approach. To address this, I explored a hierarchical path-matching mechanism that splits paths by "/" and uses a layered structure to optimize lookups, significantly improving performance. I’d like to confirm if this aligns with Spring’s design principles and propose contributing it as a spring-boot-starter to Spring Boot, collaborating with the community to refine it. I’m happy to iterate based on feedback. Attached is the detailed design document, including code, unit tests, AbstractHandlerMethodMapping optimizations, and a JHM performance report. Thank you for your time and feedback!

Comment From: bclozel

Duplicates https://github.com/spring-projects/spring-framework/issues/34461