chibenwa opened a new pull request #440:
URL: https://github.com/apache/james-project/pull/440


   Clients use a close ensemble of properties combination in JMAP responses.
   This enable reuse of jackson assemblies and achieve significant speedup
   of JMAP responses serialisation.
   
   ## Before
   
   ~20% of James applicative CPU time is spent doing JMAP response 
serialization. This is because each request needs a dedicated property filter, 
which is implemented by always initializing a new ObjectMapper, which takes 
time and is sub-optimal as it is not warm.
   
   ![Screenshot from 2021-05-19 
14-27-32](https://user-images.githubusercontent.com/6928740/118773118-b119a400-b8ae-11eb-8d53-dc0720d3193a.png)
   
   Here are the associated gatling run:
   
   ![Screenshot from 2021-05-19 
14-30-29](https://user-images.githubusercontent.com/6928740/118773240-d4445380-b8ae-11eb-9891-22a1efd210b9.png)
   
   ## After
   
   ![Screenshot from 2021-05-19 
14-32-18](https://user-images.githubusercontent.com/6928740/118773465-11a8e100-b8af-11eb-8dcb-07d3531d612a.png)
   
   By caching common serialization patterns we decreased 6 time CPU utilization 
for JMAP Draft response serialization.
   
   Here are the associated gatling run:
   
   ![Screenshot from 2021-05-19 
14-37-50](https://user-images.githubusercontent.com/6928740/118774265-d65ae200-b8af-11eb-82bf-40bb8c4c7e72.png)
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to