I discovered that very first request to my restcontroller method take more time then others. I run JProfiler against my application and noticed that ObjectMapper is looking for deserializator in DeserializationContext class and when deserializator is not there new one is created. Is there a way to create object deserializator and put it to cache before first request?
Asked
Active
Viewed 124 times
0
-
Time difference between 0.001 sec to 0.003 sec? – degr Sep 23 '16 at 09:20
-
No with JProfiler whole ObjectMapper takes near 500ms for the most compex object – Damian0o Sep 25 '16 at 14:58