You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by GitBox <gi...@apache.org> on 2018/11/16 16:46:39 UTC

[GitHub] janro1 opened a new pull request #1: reduced number of no suchfieldexceptions for pojo style models

janro1 opened a new pull request #1: reduced number of no suchfieldexceptions for pojo style models
URL: https://github.com/apache/sling-org-apache-sling-scripting-sightly-runtime/pull/1
 
 
   Hi,
   
   we see very high numbers of exceptions under heavy load on author and publish instances because of the way getField is implemented. As every of our models is written in java bean style with getters and setters, we decided to inverse the retrieval order for properties from field first to method first. This has dramatically reduced the amount of exceptions generated (around 200.000 per minute in our case) and improved the render performance up to 10%.
   
   As invokeBeanMethod does not generate an exception if the method is not found the performance impact for models which rely on public field access should not be that big. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services