X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fsort.lisp;h=278b79c34d082465b54f20a05fbd603125f0b094;hb=5877e8c2334bd87490be385af21ed9bc494f19e2;hp=970defbb15554fffcfbf3c179f7a20c17cae734d;hpb=088583ae2b22d8d861fbc354568bd24edc0333cb;p=sbcl.git diff --git a/src/code/sort.lisp b/src/code/sort.lisp index 970defb..278b79c 100644 --- a/src/code/sort.lisp +++ b/src/code/sort.lisp @@ -164,6 +164,9 @@ (type function test key) (dynamic-extent head)) (labels ((merge* (size list1 tail1 list2 tail2 rest) + (declare (optimize speed) + (type (and fixnum unsigned-byte) size) + (type cons list1 tail1 list2 tail2)) (when (>= size +stable-sort-fast-merge-limit+) (cond ((not (funcall test (funcall key (car list2)) ; stability (funcall key (car tail1)))) ; trickery