diff options
author | Denton Cockburn <kanielc@gmail.com> | 2014-12-15 21:58:46 -0500 |
---|---|---|
committer | Denton Cockburn <kanielc@gmail.com> | 2015-01-09 20:41:37 -0500 |
commit | d1d3225e28ed1847470d976ffeefbce40e90d9ac (patch) | |
tree | 4015a0c80561cf1ca7117f1604d4936a3ca1a982 /test/files/run/t2873.check | |
parent | 7ba38a07916426314cc3bff6999f3992757e0b26 (diff) | |
download | scala-d1d3225e28ed1847470d976ffeefbce40e90d9ac.tar.gz scala-d1d3225e28ed1847470d976ffeefbce40e90d9ac.tar.bz2 scala-d1d3225e28ed1847470d976ffeefbce40e90d9ac.zip |
SI-8988 Escaping character in StringLike.split(c) prevents usage of optimized String.split code path
Escaping a char when calling split is slow. We end up compiling a
Pattern to simply match a character literal.
Instead, we just use an loop with indexOf to construct our resulting
Array.
Current speed up over old behaviour is about 12-1
Diffstat (limited to 'test/files/run/t2873.check')
0 files changed, 0 insertions, 0 deletions