]> git.lyx.org Git - lyx.git/commit
In the no-draw phase, do not cache the positions of not visible insets
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 24 Jul 2023 15:53:16 +0000 (17:53 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 5 Apr 2024 11:03:22 +0000 (13:03 +0200)
commit7f85024f80601b15634fb5e771bba51435ad429f
treef5ec998999479a4013a874a482111d621a227882
parentd19ade9a611d3ecf6840c5eb43291cb268ad6f4f
In the no-draw phase, do not cache the positions of not visible insets

This can make a big difference for a very large branch that contains
lots of equations.

This is complementary to the previous patch, since instead of reducing
the number of calls to updatePosCache, we make it faster.

In the same test of scrolling with mouse wheel through the
branch-test.lyx document, one finds a 23% improvement for
BufferView::updateMetrics().

Part of bug #12297.
src/TextMetrics.cpp