Todd Lipcon created RANGER-2420:
-----------------------------------

             Summary: Ranger spends 36% of CPU in ObjectMapper
                 Key: RANGER-2420
                 URL: https://issues.apache.org/jira/browse/RANGER-2420
             Project: Ranger
          Issue Type: Improvement
          Components: Ranger
            Reporter: Todd Lipcon


Ranger uses ObjectMapper to convert to/from JSON. In a profile of a workload 
(an Impala authorization test) I see that 36% of the ranger CPU is spent in 
these functions. 26% of total CPU is in the '_findRootDeserializer' method, 
which gets cached if a type is deserialized multiple times. However, the 
caching is only effective if the ObjectMapper is reused. JSONUtil appears to 
create a new ObjectMapper on every call, which defeats the caching.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to