Jannis <[email protected]> writes:

Hi Jannis,

> thanks for your reply. Here comes the requested output:
>
> TeX-save-document                        1           14.690720819 14.690720819
> TeX-check-files                          2           14.690422432 7.3452112164

Ok, I've guessed that.  `TeX-check-files' has deeply nested loops, but
nothing that should take that long.  What is the value of
`TeX-check-path' on your system?

Hm, one thing which could explain the slowness is that file existence
checks are very slow on your system, and `TeX-check-files' does some
thousands of them.  Is some directory in `TeX-check-path' located on,
e.g., an NFS mount?

Please try

  M-x benchmark RET (dotimes (i 10000) (file-exists-p "/some/file")) RET

and report the printed runtime.  If your `TeX-check-path' contains
directories residing on, e.g., NFS mounts, then be sure to use
/path/to/network-drive.

On my system with an SSD, that's

  Elapsed time: 0.268643s (0.084832s in 1 GCs)

so it might be slower for you, but at least is shouldn't be orders of
magnitude slower.

Bye,
Tassilo


_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to