I am using fresco to loading image in a ListView. Each list item contains about 25 images. When I enable fresco log by call FLog.setMinimumLoggingLevel(FLog.VERBOSE); I saw a huge performance degradation, setting image on 25 images cost about 6-10ms. However when fresco log disabled, it only cost 1-2ms. Can anyone explains the reason?
Asked
Active
Viewed 85 times
0
-
1Because generating lots of log messages takes time? – TripeHound Sep 01 '17 at 09:59
1 Answers
1
Fresco is doing additional logging for debugging purposes if it's set to Verbose. Not only do the printing statements slow this down but also additional computations for debugging purposes.
You can see these log instances here: https://github.com/facebook/fresco/search?utf8=%E2%9C%93&q=FLog.v&type=

Alexander Oprisnik
- 1,212
- 9
- 9