3 ms·
Are you writing temporary files to temp or /dev/shm ? I would hate it otherwise. Of course, others my prefer to have RAM used by other processes...
by adr1an 3y ago
Are you writing temporary files to temp or /dev/shm ? I would hate it otherwise. Of course, others my prefer to have RAM used by other processes...
- darrenldl 3y agoDepends on how "temporary" we're talking. Index caches are written to $XDG_CACHE_HOME/docfd if XDG_CACHE_HOME is defined, otherwise written to .cache/docfd (in current working directory). Docfd handles LRU eviction of cached indices for you here. Piped stdin are stored in /tmp since that's what was handed to me when using the temp file API. I normally think that if the piped stdin are too much to be stored in RAM, then it probably should be saved into a place first anyway. But I am happy to discuss your use case and see if Docfd should be adjusted.