Avoid redundancy in the implementations of SEQUENCE:[STABLE-]SORT
commit7f44d32b6de6b0793fbc526ff3465beca70e1e45
authorJan Moringen <jmoringe@techfak.uni-bielefeld.de>
Sat, 30 Mar 2013 20:17:33 +0000 (30 21:17 +0100)
committerJan Moringen <jmoringe@techfak.uni-bielefeld.de>
Wed, 2 Dec 2015 23:51:43 +0000 (3 00:51 +0100)
tree1f328dd856f5b374af940f29ddbf9de0cc7e210a
parent1d12ea3a11d14c62619e7f02530f035049dae1dd
Avoid redundancy in the implementations of SEQUENCE:[STABLE-]SORT

Methods on SEQUENCE:[STABLE-]SORT for generic sequences had almost
identical bodies.

Both now call a new helper function %SORT-WITH-TEMP-VECTOR which, like
before, constructs a temporary vector and applies either SORT or
STABLE-SORT.

This change introduces some overhead since the sort function APPLYed in
%SORT-WITH-TEMP-VECTOR is not known at compile time.
src/pcl/sequence.lisp