From: Fernando D. M. M. <mat...@in...> - 2000-03-20 17:32:37
|
Optimization of expressions of the form (collect [type] (scan [type] <list construction expression> It only checks for QUOTE, LIST, CONS, COPY-LIST right now. The rest is trivial to add [someone should extend DECLAIM and PROCLAIM and add proper handling of FTYPE]. If it was not stated before, now it is: COLLECT IS NOT REQUIRED TO CONSTRUCT new SEQUENCES. It is guaranteed to do it in the cases where construction cannot be opmized out, for example: (collect (scan #(1 2 3))) (collect (scan-range :from 0 :upto 10)), or even things like (collect (map-fn 'class #'class-of (scan (class-direct-superclasses (find-class "FOO"))))) -- Fernando D. Mato Mira Real-Time SW Eng & Networking Advanced Systems Engineering Division CSEM Jaquet-Droz 1 email: matomira AT acm DOT org CH-2007 Neuchatel tel: +41 (32) 720-5157 Switzerland FAX: +41 (32) 720-5720 www.csem.ch www.vrai.com ligwww.epfl.ch/matomira.html |