Re: fastest way to consult prolog file that accesses dynamic generated millions of facts

Jan Wielemaker <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 12/16/2013 12:39 PM, adnan wrote:
> HI all ,
> When I use consult() to load and implement my prolog file that accesse
> millions of facts , it takes long time ,
> I can not use qcompile() as my facts are generated dynamically in java
> program and are not static.
>
> is there any way to speed up the  performance ?

Roughly two.  One is to avoid read/write and instead call Prolog with
data to assert.  The other is, instead of transfering the data, leave
it where it is and write an interface that allows Prolog to query the
data while it remains in the Java world.

I guess an experienced JPL hacker can provided examples.  I could
only do that for the C or C++ interfaces.

	Cheers --- Jan


>
>
> Thanks in advance .
>
>
>
> --
> View this message in context: http://swi-prolog.996271.n3.nabble.com/fastest-way-to-consult-prolog-file-that-accesses-dynamic-generated-millions-of-facts-tp13872.html
> Sent from the SWI Prolog mailing list archive at Nabble.com.
> _______________________________________________
> SWI-Prolog mailing list
> [email protected]
> https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.