Patches

Richard Kimberly Heck rikiheck at lyx.org
Mon Nov 2 21:56:17 UTC 2020


On 11/2/20 2:33 PM, Jean-Marc Lasgouttes wrote:
> Le 02/11/2020 à 19:50, Yuriy Skalko a écrit :
>
>> I'll check this stuff. By the way, is it related to numbered layouts 
>> that Daniel is now implementing on the bugtracker 
>> (https://www.lyx.org/trac/ticket/12010)? I don't inadvertently want 
>> to break his results.
>
> Yes it is related, but it should not break things in a painful way.

No, I wouldn't think so, either.

I have been thinking just a bit about this and wonder how plausible it 
is to separate out those elements of the Counter class that are 
per-Buffer (or, at least, document set) and those that are not. 
Basically: ALL of the members of Counter are per-Buffer. The ones 
associated with values obviously are. But so are e.g. labelstring_ and 
prettyformat_, since these can be over-ridden by local layouts, modules, 
etc. So I'm not sure there will be anything left if we factor out the 
non-per-Buffer stuff.

Riki



>
>> Now I've done some profiling and is interested looking into 
>> `updateMacros` that is one of the execution hotspots.
>
> Yes, updateMacros is a pain, it is actually a O(n^2) algorithm which 
> kills performance for big documents. But it is a bit scary and I never 
> dared changing it :)

>
> JMarc




More information about the lyx-devel mailing list