diff options
author | Björn Gustavsson <bjorn@erlang.org> | 2015-02-16 13:53:25 +0100 |
---|---|---|
committer | Björn Gustavsson <bjorn@erlang.org> | 2015-02-18 12:49:42 +0100 |
commit | 53288b441ec721ce3bbdcc4ad65b75e11acc5e1b (patch) | |
tree | 027c8d8157437cca7b297f3813b4532fc028b6de /xcomp | |
parent | cabcd537c30e2c0a4496ee9291cfd4e7713645c1 (diff) | |
download | otp-53288b441ec721ce3bbdcc4ad65b75e11acc5e1b.tar.gz otp-53288b441ec721ce3bbdcc4ad65b75e11acc5e1b.tar.bz2 otp-53288b441ec721ce3bbdcc4ad65b75e11acc5e1b.zip |
Optimize string:tokens/2
We can save some time by reversing the original string
before starting the tokenization.
When there is only one separator, we can save even more time
by treating that case specially so that we don't have to call
lists:member/2 for each character.
Diffstat (limited to 'xcomp')
0 files changed, 0 insertions, 0 deletions