auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] running C-c C-c very slow


From: Tassilo Horn
Subject: Re: [AUCTeX] running C-c C-c very slow
Date: Fri, 10 Oct 2014 15:08:33 +0200
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

Jannis <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]