1.0.6.27: make FD-SOUT slightly faster
authorNathan Froyd <froydnj@cs.rice.edu>
Tue, 5 Jun 2007 20:18:43 +0000 (20:18 +0000)
committerNathan Froyd <froydnj@cs.rice.edu>
Tue, 5 Jun 2007 20:18:43 +0000 (20:18 +0000)
* Eliminate spurious call to FIND; POSITION gives us enough info.

src/code/fd-stream.lisp
version.lisp-expr

index ed1140d..7f27a08 100644 (file)
                                  (simple-array character)
                                  string)
                    thing
-                 (and (find #\newline thing :start start :end end)
-                      ;; FIXME why do we need both calls?
-                      ;; Is find faster forwards than
-                      ;; position is backwards?
-                      (position #\newline thing
-                                :from-end t
-                                :start start
-                                :end end)))))
+                 (position #\newline thing :from-end t
+                           :start start :end end))))
           (if (and (typep thing 'base-string)
                    (eq (fd-stream-external-format stream) :latin-1))
               (ecase (fd-stream-buffering stream)
index 659238c..6814777 100644 (file)
@@ -17,4 +17,4 @@
 ;;; checkins which aren't released. (And occasionally for internal
 ;;; versions, especially for internal versions off the main CVS
 ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"1.0.6.26"
+"1.0.6.27"