Re: Reasons to choose CLISP over other free implementations
- From: Juho Snellman <jsnell@xxxxxx>
- Date: 29 Nov 2007 18:23:50 +0200
Javier <javuchi@xxxxxxxxx> writes:
Basically, this depends on the kind of CLOS program you are doing. For
example, my program is doing millions of instantiations, and much less
method calls.
I will again point out that the common case of giving a constant class
name to MAKE-INSTANCE is much faster in SBCL:
(defclass a () ((x :initarg :x) (y :initarg :y) (z :initarg :z)))
(defun foo () (dotimes (i (expt 2 20)) (make-instance 'a :x 1 :y 2 :z 3)))
(compile 'foo)
(time (foo))
SBCL -> 0.089s
clisp -> 0.91s
And again, the case with an variable class name is much slower in
SBCL, but exactly the same speed in clisp. Maybe this is what you're
doing, and if so, clisp would be the faster choice for you. But it
seems pretty unreasonable for you to unconditionally claim that
instantiation of CLOS objects is slower in SBCL when the common case
is much faster.
(The code path for the non-constant cases of MAKE-INSTANCE is very
much unoptimized in SBCL. That it has not been optimized is probably
due to few people using that case in practice. At least I've never had
anyone report MAKE-INSTANCE with non-constant class or initarg names
as a bottleneck in their program before this.)
I wouldn't advise people to make decisions on what
implementation to not use, without understanding what the program of
everyone are actually doing. ;)
Luckily I didn't advise people on what implementations they should not
use. There are good reasons to use clisp. I'm just saying that the
benchmarks you're misinterpreting aren't such reasons.
--
Juho Snellman
.
- Follow-Ups:
- Re: Reasons to choose CLISP over other free implementations
- From: Nicolas Neuss
- Re: Reasons to choose CLISP over other free implementations
- From: Dimiter \"malkia\" Stanev
- Re: Reasons to choose CLISP over other free implementations
- From: Eric Marsden
- Re: Reasons to choose CLISP over other free implementations
- References:
- Reasons to choose CLISP over other free implementations
- From: Javier
- Re: Reasons to choose CLISP over other free implementations
- From: Geoff Wozniak
- Re: Reasons to choose CLISP over other free implementations
- From: Javier
- Re: Reasons to choose CLISP over other free implementations
- From: Juho Snellman
- Re: Reasons to choose CLISP over other free implementations
- From: Javier
- Reasons to choose CLISP over other free implementations
- Prev by Date: Reasons to choose CLISP over other free implementations
- Next by Date: MAKE-LOAD-FORM environment
- Previous by thread: Re: Reasons to choose CLISP over other free implementations
- Next by thread: Re: Reasons to choose CLISP over other free implementations
- Index(es):
Relevant Pages
|