You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Performance Issue with @ModelAttribute [SPR-15198] #19762
ModelAttribute performs data binding so yes the details of the Object (how many fields, how many nested Objects, etc) could make a difference. In the very lease providing a TestClass object that approximates the real one would help. Or test project even better.
I just added a test-project to the repo.
Please note: The problem seems to exists only in spring boot 1.4.3 - and NOT any more in spring boot 1.4.4!!
(I just discovered this while testing) But perhaps it's worth checking anyway.
After taking a closer look, thanks for the sample, it appears the issue is a duplicate of #19626. The hotspot (~65% of time) is exactly in the same place as the first screenshot attached to #19626 but invoked from the ModelAttributeMethodProcessor. There is also a comment at the bottom about a similar report with an @ModelAttribute method. The versions also match (fixed in 4.3.6 which is what Spring Boot 1.4.4 is based on).
Activity
spring-projects-issues commentedon Jan 27, 2017
Rossen Stoyanchev commented
ModelAttributeperforms data binding so yes the details of the Object (how many fields, how many nested Objects, etc) could make a difference. In the very lease providing a TestClass object that approximates the real one would help. Or test project even better.spring-projects-issues commentedon Jan 29, 2017
Jochen Pier commented
I just added a test-project to the repo.
Please note: The problem seems to exists only in spring boot 1.4.3 - and NOT any more in spring boot 1.4.4!!
(I just discovered this while testing) But perhaps it's worth checking anyway.
Thank you!!
spring-projects-issues commentedon Feb 9, 2017
Rossen Stoyanchev commented
After taking a closer look, thanks for the sample, it appears the issue is a duplicate of #19626. The hotspot (~65% of time) is exactly in the same place as the first screenshot attached to #19626 but invoked from the ModelAttributeMethodProcessor. There is also a comment at the bottom about a similar report with an
@ModelAttributemethod. The versions also match (fixed in 4.3.6 which is what Spring Boot 1.4.4 is based on).