1.0.12.23: Optimize STRING-*-TRIM
commit94e0f68a627ce839d59e88b4c8faad486e75af91
authorJuho Snellman <jsnell@iki.fi>
Mon, 10 Dec 2007 05:35:10 +0000 (10 05:35 +0000)
committerJuho Snellman <jsnell@iki.fi>
Mon, 10 Dec 2007 05:35:10 +0000 (10 05:35 +0000)
tree4cc32424173171537e97ddafa92e57c3efb18139
parenta78202527c1b4f8a9a6cb190870577e39d8544fd
1.0.12.23: Optimize STRING-*-TRIM

       * Add deftransforms for STRING(-LEFT|-RIGHT|)-TRIM of simple strings.
         As a sleazy benchmark trick, also optimize for constant character bags.
       * Rewrite the function versions of the string trimmers for more
         code reuse. New versions also no longer cons up a new string when
         no trimming needs to be done. (Allowed in the spec, as pointed out
         by Attila Lendvai)
       * Add tests.
src/code/string.lisp
src/compiler/seqtran.lisp
tests/string.pure.lisp
version.lisp-expr