Commit minor fogotten changes
authorMatthew Mondor <mmondor@pulsar-zone.net>
Wed, 9 Sep 2015 23:18:57 +0000 (23:18 +0000)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Wed, 9 Sep 2015 23:18:57 +0000 (23:18 +0000)
mmsoftware/cl/test/ecl-endian-byte-order.lisp
mmsoftware/cl/test/string-dict-perf-test.lisp

index 4c36039..4c5d038 100644 (file)
@@ -1,7 +1,11 @@
-;;;; $Id: ecl-endian-byte-order.lisp,v 1.1 2013/11/14 11:58:56 mmondor Exp $
+;;;; $Id: ecl-endian-byte-order.lisp,v 1.2 2015/09/09 23:18:57 mmondor Exp $
 ;;;; Copyright (c) 2013, Matthew Mondor
 
 #|
+
+;;; LDB/BYTE are elegant, but they unfortunately suffer from poor
+;;; optimizations
+
 (declaim (inline byteorder-bswap16))
 (defun byteorder-bswap16 (word)
   (declare (optimize (speed 3) (safety 0) (debug 0))
index f6ff24c..30ff49f 100644 (file)
@@ -1,4 +1,4 @@
-;;; $Id: string-dict-perf-test.lisp,v 1.3 2014/07/13 17:12:17 mmondor Exp $
+;;; $Id: string-dict-perf-test.lisp,v 1.4 2015/09/09 23:18:57 mmondor Exp $
 
 ;;; Verify the performance of various sized hash tables, alists, plists
 ;;; and vectors for key-value storage.  Also test versus DO-SXHASH-CASE.
        (return-from vector-remove vector))
       ;; Match, swap last entry with matched index and decrease fill-pointer
       (unless (= last i)
-       (psetf (aref vector last) (aref vector i)
-              (aref vector i) (aref vector last)))
+       (rotatef (aref vector last) (aref vector i)))
       (setf (fill-pointer vector) last)
       vector)))