[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] overlay prompting
From: |
jfbu |
Subject: |
Re: [AUCTeX] overlay prompting |
Date: |
Sun, 24 Jan 2016 16:18:23 +0100 |
Le 24 janv. 2016 à 16:12, Mosè Giordano <address@hidden> a écrit :
> 2016-01-24 16:05 GMT+01:00 jfbu <address@hidden>:
>>
>> Le 24 janv. 2016 à 15:54, Mosè Giordano <address@hidden> a écrit :
>>
>>> 2016-01-24 15:49 GMT+01:00 jfbu <address@hidden>:
>>>> how do you time the parsing ?
>>>
>>> With `benchmark-run'. In the file buffer run
>>>
>>> M-: (benchmark-run (TeX-auto-parse)) RET
>>>
>>> The first argument of `benchmark-run' can be the number of the
>>> repetitions of the form.
>>>
>>
>>
>> I got this before the patch
>>
>> (0.087632 1 0.029196999999999917)
>>
>> and after the patch:
>>
>> (3.623112 30 0.7104439999999999)
>>
>> in the mean time I patched tex.el, byte-compiled and loaded it.
>>
>> Thus it seems I have indeed a rather drastic time increase
>> with my big document.
>>
>> I also tried C-cC-n and had indeed about three seconds wait.
>>
>> The .el file has no beamer anymore.
>>
>> But obviously, I am tempted to conclude that
>> time penalty is too big.
>
> `LaTeX-verbatim-p' looks first at the face at point, then to the
> current macro, and if all previous tests are nil, which is the most
> common case, runs also `LaTeX-current-environment', which is known to
> be *slow*.
>
> I think current parsing time is acceptable, less than 0.1 s in your
> long and complex document is reasonably low, and I hoped that there
> were already the test for verbatim mode. But since this test is not
> there, adding it wouldn't be a fair trade-off.
>
current parsing time is barely noticeable; with the patch applied
however each time I change a single character and do C-xC-s I have
to wait a few seconds for it to complete (on my big test document).
Cheers
Jean-François
- Re: [AUCTeX] overlay prompting, (continued)
- Re: [AUCTeX] overlay prompting, Mosè Giordano, 2016/01/15
- Re: [AUCTeX] overlay prompting, jfbu, 2016/01/15
- Re: [AUCTeX] overlay prompting, jfbu, 2016/01/15
- Re: [AUCTeX] overlay prompting, jfbu, 2016/01/24
- Re: [AUCTeX] overlay prompting, Mosè Giordano, 2016/01/24
- Re: [AUCTeX] overlay prompting, Mosè Giordano, 2016/01/24
- Re: [AUCTeX] overlay prompting, jfbu, 2016/01/24
- Re: [AUCTeX] overlay prompting, Mosè Giordano, 2016/01/24
- Re: [AUCTeX] overlay prompting, jfbu, 2016/01/24
- Re: [AUCTeX] overlay prompting, Mosè Giordano, 2016/01/24
- Re: [AUCTeX] overlay prompting,
jfbu <=
- Re: [AUCTeX] overlay prompting, jfbu, 2016/01/24
- Re: [AUCTeX] overlay prompting, Mosè Giordano, 2016/01/24
- Re: [AUCTeX] overlay prompting, jfbu, 2016/01/24
- Re: [AUCTeX] overlay prompting, Joost Kremers, 2016/01/24
- Re: [AUCTeX] overlay prompting, jfbu, 2016/01/25
- Re: [AUCTeX] overlay prompting, Mosè Giordano, 2016/01/25
- Re: [AUCTeX] overlay prompting, jfbu, 2016/01/25
- Re: [AUCTeX] overlay prompting, jfbu, 2016/01/25
- Re: [AUCTeX] overlay prompting, jfbu, 2016/01/25