Hi,

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?

--------------------
(virtualStringToValue

        {Compiler.virtualStringToValue +V X} 

    is a replacement for System.virtualStringToValue, which was
available in Mozart's predecessor DFKI Oz.

    Note that you are discouraged from using this for large data
structures: Because it is much more powerful than
System.virtualStringToValue, it can also be much less efficient. Rather,
you should use pickling and unpickling of data structures (see Chapter
22 of ``System Modules'').
----------------

Thanks so much,

Ashis

Attachment: problem.ozt
Description: problem.ozt

_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to