Re: Consulting a memfile

Jan Wielemaker <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 10/10/2013 01:00 AM, Paulo Moura wrote:
> (2) how fast creating/writing to a memory file and then consulting it
> would be compared to create, write to, and consult an ordinary
> temporary file.

I'd typically expect the memory file solution to be quicker on smallish
amounts of data. On larger amounts, the file creating overhead should
typically be neglectable. Of course, tmp file handling performance
varies widely between OSes.  Memory files should be more predictable.
So, if the amount of memory is not an issue, I'd use memory files for
temporary stuff that only needs to be written and read by the same
Prolog process.

	Cheers --- Jan
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.