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