Dan Sugalski wrote:

At 12:00 PM +0100 10/27/04, Peter Hickman wrote:

Presently Python compiles it's py files to pyc files that can then be run without access to the source (the py).

Would Perl 6 be able to do this? Compile the pl to plc and pm to pmc and load the ??c version if it was available and newer than the source?


Yeah, that's doable. Probably will be done.

Other than code hiding would there be any performance benefits?


Given that the bytecode will probably have a segment with the original source in it, this isn't likely to get you much of a win there.

There should be a performance win, though. There won't be a need to compile the source, which saves some time. Bytecode files on-disk are shared across all the processes in the system, so you only get one in-memory copy of a file, which saves both RAM and load time if you're using a file that another process is using.

On single user or small machines this probably won't be a big win in most cases. It should, however, make a pretty big difference in server systems.
--
Dan


--------------------------------------it's like this-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk


Thanks for that, I was pretty sure that it should have been doable.

Thanks



Reply via email to