Class.getSimpleName takes 49% of total Cronet initialization time |
|||
Issue descriptionThe attached Android profile contains CPU profiling of Cronet initialization code. According to the profile, most of the time (49%) was spent in the Class.getSimpleName() method. We should investigate it and see whether removing this call can significantly improve the performance. Cronet uses Class.getSimpleName() for logging to assign the logging TAG.
,
Mar 20 2017
,
Mar 20 2017
I created a script that runs a test app 100 times with tracing turned off and measures the timing. The results are: - 41ms if the app calls getSimpleName() - 40ms if the app doesn't call getSimpleName(). It looks that the tracing significantly skews the results. Closing the issue. |
|||
►
Sign in to add a comment |
|||
Comment 1 by kapishnikov@chromium.org
, Mar 17 2017377 KB
377 KB Download