Skip to content

Commit

Permalink
1.0.6.27: make FD-SOUT slightly faster
Browse files Browse the repository at this point in the history
	* Eliminate spurious call to FIND; POSITION gives us enough info.
  • Loading branch information
Nathan Froyd committed Jun 5, 2007
1 parent 7db258e commit 774a70c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions src/code/fd-stream.lisp
Expand Up @@ -555,14 +555,8 @@
(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)
Expand Down
2 changes: 1 addition & 1 deletion version.lisp-expr
Expand Up @@ -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"

0 comments on commit 774a70c

Please sign in to comment.