in reply to Trading compile time for faster runtime?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Trading compile time for faster runtime?
by melez (Sexton) on Apr 20, 2022 at 17:22 UTC | |
by LanX (Saint) on Apr 20, 2022 at 19:51 UTC | |
by melez (Sexton) on Apr 21, 2022 at 09:50 UTC |