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

Loading…
Cancel
Save