diff options
author | Guillaume Melquiond <guillaume.melquiond@inria.fr> | 2015-12-21 17:51:38 +0100 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@inria.fr> | 2015-12-21 17:51:38 +0100 |
commit | 13f014ba37e0af547d57854df8926d633f9ccb7b (patch) | |
tree | 626f183904e68454ede6453840292d1d1cd09dbe /lib/genarg.mli | |
parent | b88929d9d8de179a7e356cf9cbe2afef76f905a3 (diff) |
Trust the directory cache in batch mode.
When coqtop is a long-lived process (e.g. coqide), the user might be
creating files on the fly. So we have to ask the operating system whether
a file exists beforehand, so that we know whether the content of the
directory cache is outdated.
In batch mode, we can assume that the cache is always up-to-date, so we
don't need to query the operating system before trusting the content of
the cache.
On a script doing "Require Import Reals", this brings down the number of
stat syscalls from 42k to 2k. The number of syscalls could be further
halved if all_subdirs was filling the directory cache.
Diffstat (limited to 'lib/genarg.mli')
0 files changed, 0 insertions, 0 deletions