Subj : Re: Persistent storage of compiled scripts To : netscape.public.mozilla.jseng From : Thorsten R Date : Wed Jul 21 2004 11:10 am Thank you for your help. I will take a close look at your hints. I was in doubt if a compiled script already contains pointers to internal objects (and external objects as well as external C-functions). Do your hints really mean that I can store a compiled script to file, completely shutdown my application and run the application days later using those compiled scripts? This would mean that compiled scripts are "linked" at runtime to objects in the engine. Or are objects never resolved to pointers in the p-code, i.e. does the engine always a search by name to reference an object during the execution of the p-code? Thorsten "Thorsten R" schrieb im Newsbeitrag news:cderij$j5t1@ripley.netscape.com... > Hello, > > is it possible to compile scripts and store the resulting code persistantly > in a file for later use? > > In other words: we don't want to compile the whole JS code each time it is > loaded into our application. Instead we would like to compile it once and > use the p-code then immediately at runtime. > > If this is possible: how do we get access to the p-code (for storage to > file) and how do we feed the p-code later back to the interpreter engine? > > Regards > Thorsten Radde > > .