3 ms·
> that the compiler can't just magically figure out unaided whether to inline stuff or not Allegro CL does inlining on its own, IIRC. > majority of users woul
by lispm 6y ago
> that the compiler can't just magically figure out unaided whether to inline stuff or not
Allegro CL does inlining on its own, IIRC.
> majority of users would find this behavior problematic as default
Block compilation or whole program compilation are used for delivery of applications.
- patrec 6y ago> Block compilation or whole program compilation are used for delivery of applications. Mostly, sure just like LTO in C/C++. But if I were doing any scientific programming with common lisp I'd try to use block compilation in a few select places during interactive development as well. I'd imagine that for some code this would get rid of a lot of boxing and unboxing as well as type checks, in addition to getting rid of indirection. I'd not be surprised if you could get an integer factor speed up if you got many small functions which mostly operate on doubles or double arrays. I should probably give it a try just to satisfy my curiosity.