Thanks Wolfgang. I did not completely get the steps you are recommending! Do 
you mind writing a few lines?

Thanks so much,

Ashis

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Wolfgang Meyer
Sent: Thursday, May 07, 2009 11:36 AM
To: Mozart users
Subject: Re: Compiler.virtualStringToValue

> It appears that for large input data (more than 500K)
> {Compiler.virtualStringToValue InputData} takes long time to compile and
> sometimes causes memory spike as well. Reading the manual it seems they
> are also discouraging in using it for large data sets. I do not want to
> use "pickle" since my input will change at every run. My input data is
> real simple like the attached. Can anybody suggest an alternate way of
> compiling the data?

You might want to reconsider the pickle option (as described by Denys here: 
http://lists.gforge.info.ucl.ac.be/pipermail/mozart-users/2003/003442.html ).
You could write the textual data into a temporary file from your running 
program ("Open.file"), call the compiler (ozc) on it with "OS.system" and then 
use "Pickle.load" to load the data as an Oz value.
In this way, compilation happens in a different process and possible memory 
problems are less serious.

Cheers,
  Wolfgang

-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss 
für nur 17,95 Euro/mtl.!* 
http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a
_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users
_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to