Hi,
I have a problem with a "memory leak". I'm writing an application that
parses a lot of text (using a regular expression package called
OROMatcher).
I have jess functions calling the java functions to get the text and
then
I call the parse functions (also from Jess) to remove comments, extract
values, etc.
The problem is that whenever a string is sent to Jess it is added to the
atom table (or JessHashtable as it is called). Since there is no atom
table gc,
all text is added indefinitely.
Is there any (nice) way around this, or do I need atom gc?
One solution could be to wrap all java-functions returning strings in
functions
returning Objects. Such values are not added to the atom table. But
whenever
the jess program needs to access the strings again they have to be
converted
back to strings and will inevitably be added to the atom table, as I
understand it. That solution does not work for me, since I want jess to
look at the text
when it decides what java functions to call...
Perhaps one could introduce a string type that is not asserted into the
atom
table? In many languages (like prolog) one distinguishes between atoms
and strings... And even for them, one recently introduced atom gc
because it was
needed when one writes sever programs.
/Lars Rasmusson
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------