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.
Furthermore 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
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re: Trading compile time for faster runtime?
by LanX
in thread Trading compile time for faster runtime?
by melez
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |