logo       

Re: Question of dynamic loading and multifile: msg#00449

Subject: Re: Question of dynamic loading and multifile
sudhakar govindavajhala writes:
 > 
 > Philo, sorry.  That was a typo.  It is not 70, but about17MB.  However, I do
 > expect to reach 70MB in the near future.  Most of this is data. Code is
 > quite small, less than 1MB. I think I would be doing some heavy duty stress
 > testing of XSB in the future.

We regularly run programs with over 200MB of data (that's after
loading it into XSB).  With some care it runs fine (of course have to
have enough RAM to store it all and everything else that is needed.)
The big issue is good indexing.

And to try to answer Sudharar's question about multifile and dynamic
loading... First a caveat, I'm doing this from memory and could be
wrong.  My recollection is that multifile for dynamic predicates is
only partially implemented.  For initially loading files containing
multifile predicates, everything should work as expected.  The problem
comes with reloading some file.  The semantics of multifile should be
that the data that was previously loaded from the same file is deleted
and the new data in that file is added.  But in dynamic loading, no
record is kept of what data comes from what file, so that this cannot
be done.  So on reloading a file into a multifile predicate, the data
from the file just gets added.  I.e., the data previously loaded from
that file is NOT deleted.

You should be able to program the capability you desire in XSB.
load_dyn and load_dync are both written in XSB and I could help you
design and implement such a facility, if you wish.  

 >   One thing I found in my stress tests is that
 > INterprolog crashes on JNI call into XSB.  I am investigating this.

We've been using Interprolog, with the JNI interface, and we have it
working fine.  (However, it may be that we have made some changes to
it to make it work.  Those changes should have been propagated back to 
the most recent release of Interprolog from Declarativa, but there may 
still be some problems.)

-David

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/


<Prev in Thread] Current Thread [Next in Thread>