Re: Is the following behavior defined by the standard or implementation specific?



On Jul 29, 11:53 am, Pascal Costanza <p...@xxxxxxxxx> wrote:
Thomas F. Bur*** wrote:
Obviously the SBCL interpretation encourages more frequent use of type
declarations; you want to be sure you're not lying when using type
declarations in Allegro. On the other hand, senselessly inserting
type declarations everywhere throughout your code can in certain
situations slow things down with SBCL, if it can't remove some of the
generated assertions.

Shouldn't senseless insertions of type declarations be considered a form
of premature optimization anyway?

Not necessarily premature, but definitely a bad idea. It seems to be
one of the common foolish approaches that Lisp newbies have when
trying to speed up the inner loop of their image processing / dna
sequencing / whatever application.


.


Quantcast