commit | 9c1600b3f22e33c704a9b0487806a0d990d78a88 | [log] [tgz] |
---|---|---|
author | Przemyslaw Szczepaniak <pszczepaniak@google.com> | Tue Oct 27 16:09:15 2015 +0000 |
committer | Narayan Kamath <narayan@google.com> | Thu Nov 12 10:51:48 2015 +0000 |
tree | 403fcb15d9ad5b6981cea4cf9752377164465827 | |
parent | 2921f8147c913e03a9e69a59422ab6768067f477 [diff] |
String#split fast path optimization Instead of allocating ArrayList and growing/shrinking it, lets count all the separators and allocate the array of the required size. Change-Id: Ia70ef54efd1580903f5752e3d488b3643e5c89b7 (cherry picked from commit f2cc57313df2fd0f84cb0550bccd3396a3029b7f)