Re: FLEXI-STREAMS optimization mysteries
2007-01-06 17:36:06 GMT
Edi Weitz: >My recent experiments (not very extensive, though) seem to suggest >that on LispWorks SLOT-VALUE is faster than accessors, at least if you >don't disable the slot access optimizations. Looks like in CLISP too. Hi all. Is there some good books to read to get understanding of how Common Lisp implementation may work, enough to have more or less right expectations about different language constructs performance? For example, I'm quite surprised by the fact, that CLOS dispatch outperforms direct funcalling a closure stored in a slot of class. I.e. (defclass c-der-1 (c) ()) (defclass c-der-2 (c) ()) (defmethod m ((instance c-der-1)) (do-something instance)) (defmethod m ((instance c-der-2)) (do-something-else instance)) (m (make-instance 'c-der-1)) (m (make-instance 'c-der-2))(Continue reading)
RSS Feed