Patrick R. Michaud wrote:
On Wed, Jul 13, 2005 at 12:29:29AM -0400, Will Coleda wrote:
Ah, there we go. partcl is back down to about 4.5 times slower.
Running a trace, I see the top two opcodes are:
Code J Name Calls Total/s Avg/ms
177 - compile_p_p_s 2 0.088355 44.177380
537 - load_bytecode_sc 6 0.034809 5.801486
Well, I would currently not worry about interpreter (+PGE) startup time
for a 'hello world'ish program, but anyway ...
... In particular, given
that the PGE.pbc file is created by doing
parrot -o PGE.pbc --output-pbc PGE.pir
is the @LOAD subroutine in PGE.pir executed when parrot compiles it
or when PGE.pbc is loaded? (I suspect the latter.)
At load time, i.e. when you run "load_bytecode 'PGE.pbc'".
More generally, how does one save precompiled tables into a .pbc
file...? I haven't seen quite how to do this yet...
There is no interface (from PIR) yet. But I'm pondering since quite a
time a "PackFile" PMC, with some methods for manipulating PBCs,
including "write" to be able to create pre-compiled code.
Pm
leo