From b2277014735d4b7879689a702eaaaf8962d1b006 Mon Sep 17 00:00:00 2001 From: rstoyanchev Date: Tue, 10 Feb 2026 10:12:15 +0000 Subject: [PATCH] Optimize RequestMappingInfo hashcode calculation Precalculated hashcode makes sense for infos in the registry, but matched infos created on the fly don't need it. Closes gh-36279 --- .../mvc/method/RequestMappingInfo.java | 47 ++++++++++++------- 1 file changed, 30 insertions(+), 17 deletions(-) diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/RequestMappingInfo.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/RequestMappingInfo.java index 3a400624b4f..bef16b4fc7d 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/RequestMappingInfo.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/RequestMappingInfo.java @@ -104,7 +104,7 @@ public final class RequestMappingInfo implements RequestCondition