Robert Smith committed a644c4d

add info about with-specialized-types

Comments (0)

Files changed (1)


 ;;;; specialize-type.lisp
 ;;;; Copyright (c) 2013 Robert Smith
+;;; We trade space for speed for space here. Compilers like SBCL can
+;;; specialize code paths in each branch of the ETYPECASE since it
+;;; knows the type of VAL. Maybe useful for numerical code.
 (defmacro with-specialized-types (val types &body body)
   `(etypecase ,val
      ,@(loop :for ty :in types