set split output list initial size

http-api
gongdewei 5 years ago
parent a2b7771819
commit 080eabc300

@ -203,7 +203,7 @@ public class SpyImpl extends AbstractSpy {
/**
* split
* trace/watch splithotspot
* trace/watch split
* List
* @param str
* @return
@ -211,7 +211,7 @@ public class SpyImpl extends AbstractSpy {
private List<String> splitString(String str) {
List<String> strs = splitCache.get(str);
if (strs == null) {
strs = new ArrayList<String>();
strs = new ArrayList<String>(8);
StringUtils.splitToList(str, '|', strs);
splitCache.put(str, strs);
}

Loading…
Cancel
Save