Jean-Marc Lasgouttes a écrit :
"Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes:
Abdelrazak> Sorry but I do not see why modifying an enum in one
Abdelrazak> footnote should impact a caption inside a float inset.
I put some of the 'interesting' constructs in the attached file.
I understood the needs from the very beginning, really.
Abdelrazak> Beside, counters inside a float works fine with my patch
Abdelrazak> which does not remove functionalities.
Agreed. I was reacting on the comment that updating inside insets is
wrong.
What I mean is that there has to be a way to make the code fast
enough, since nobody complains about that under linux.
See below.
Abdelrazak> IMHO, enumeration inside a footnote in an enumeration
Abdelrazak> should not inherit the counter context of its mother
Abdelrazak> enumeration.
This is how it works in LaTeX anyway. If footnote is a problem for
you, think Branch.
OK, thanks for the info.
I was thinking of rewriting as a way to speed up code. I _really_
would like to see gprof output about this case. We cannot guess
where the problem is without seeing it.
Abdelrazak> So my word that it is slow and that my patch solves that
Abdelrazak> slowness is not enough? Do you want me to make a poll in
Abdelrazak> the user list about lyx-1.4.x under Windows?
Of course your word is enough. And I am aware that other people see
that. What I am saying is that, since this seems to be a mingw
problem, a profile should help us to see where the problem is (what
function, whatever).
IMHO even if there's no performance penalty on linux (which I really
doubt on slow machine) the way the counters are updated is too heavy. We
should instead maintains lists of interdependent numbered paragraphs and
update only those paragraphs that need updates. In this context, a kind
of DocIterator that will iterates other one of these lists would be
really useful.
Abdel.