diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-06-22 07:15:58 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-06-22 07:15:58 -0700 |
commit | 27ece3ffc30437f4a70228b96764e306bd5ed4f1 (patch) | |
tree | 1e31550044e236af58c3edce542eeb3efde99569 /y.tab.c.shipped | |
parent | 08b4921e616a17ed8492527c6a89c08ccc33ea35 (diff) | |
download | txr-27ece3ffc30437f4a70228b96764e306bd5ed4f1.tar.gz txr-27ece3ffc30437f4a70228b96764e306bd5ed4f1.tar.bz2 txr-27ece3ffc30437f4a70228b96764e306bd5ed4f1.zip |
lib: optimize mismatch, rmismatch for strings.
* lib (mismatch, rmismatch): If the arguments are strings or
literals, other than lazy strings, keyfun is identity, and
equality is by character identity, the operation can be done
with an efficient loop over the wchar_t strings.
* tests/012/seq.tl: Tests for string case of mismatch, via
starts-with function. Test mismatch via ends-with, and also
directly for vectors and strings.
Diffstat (limited to 'y.tab.c.shipped')
0 files changed, 0 insertions, 0 deletions