Keep It Simple, Stupid | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
You should be more specific which kind of optimization at compile time you are missing, I doubt there is much potential left.
Perl has dynamic typing which means higher performance is only possible by JIT-ing once the types are (statistically) known (i.e."code paths" are recorded at run-time) The other way is explicit typing of variables by the author, allowing to optimize crucial sub-routines at compile time. JS (JIT) resp Typescript (Typing) can do both now. But as I said, please show us a way to improve ahead of time compilation of vanilla Perl without types.
editFurthermore I'm not sure if Perl can even write such optimized machine code without being bundled with a C-compiler. Theoretically once could use typed variables to create Inline::C blocks. But I'm ignorant about other possibilities here...
Cheers Rolf In reply to Re: Trading compile time for faster runtime?
by LanX
|
|