I'm investigating a lag, occurring after the first touch-input of my android-application. I used TraceView and tracked down the ~2 second lag to the initialization of Guava's Splitter
.
- Why does this take so long?
- Am I reading TraceView's output correctly?
- What can I do about this?
This is the line invoking Splitter
:
String desc = /* loaded from assets */
List<String> descList = Lists.newArrayList(Splitter.on("\n").split(desc));