speed benefit. Over 3 times speedup on looped read-line.
&aux (total-copied 0))
(declare (type fd-stream stream))
(declare (type index start requested total-copied))
+ (declare (type (simple-array character (#.+ansi-stream-in-buffer-length+)) buffer))
(let ((unread (fd-stream-unread stream)))
(when unread
(setf (aref buffer start) unread)
&aux (total-copied 0))
(declare (type fd-stream stream))
(declare (type index start requested total-copied))
+ (declare (type (simple-array character (#.+ansi-stream-in-buffer-length+)) buffer))
(let ((unread (fd-stream-unread stream)))
(when unread
(setf (aref buffer start) unread)