]> git.lyx.org Git - features.git/commitdiff
Merge branch 'breakrows'
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 7 Dec 2021 16:06:21 +0000 (17:06 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 7 Dec 2021 16:06:21 +0000 (17:06 +0100)
With this merge, the way paragraphs are typeset changes. Paragraphs
are first tolenized as row elements, and these elements are then
broken into separate rows as needed to fit the margins. This allows to
reduce the amount of metrics computation and make LyX much faster in
the case of large insets.

Moreover, the code relies more on RofFlags enum, which desribes how an
inset or a row element should be typset. This aspect will be extended
in the future.

Some user for whom performance is very bad (which I cannot reproduce
unfortunately) have reported a 4-fold speedup. In general cases, the
speedup will be less impressive but still noticeable.

Related to bugs #12297 and #5861.


Trivial merge