I am evaluating algorithms that produce large lists (larger than I want to scroll through in a SLIME buffer). For example, I have a function:
Is there a way to suppress the P in REPL? I am using SBCL under SLIME if that matters.
(defun prime-list (n m)
(declare (optimize (speed 0) (debug 0) (safety 0)))
(declare (type fixnum n)
(type fixnum m))
(let ((primes (loop for i from
((lambda (c) (if (evenp c)
(+ c 1)
c)) n)
to m by 2
when (primep i)
collect i)))
(if (< n 3)
(append '(2) primes)
primes)))
I am timing it and exploring how playing with the type declarations and optimizations effect it. I typically execute it with (time (prime-list 0 200000)) which gives me a useful figure of merit for how the optimizations are changing. Unfortunately it returns a list with 17985 primes, which I don't really care about (but do need as part of a larger system). Is there a way to suppress the P in REPL? I am using SBCL under SLIME if that matters.