]> git.lyx.org Git - lyx.git/commit
Remove some redundant calls to updatePosCache
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 24 Jul 2023 13:35:16 +0000 (15:35 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 5 Apr 2024 11:03:22 +0000 (13:03 +0200)
commitd19ade9a611d3ecf6840c5eb43291cb268ad6f4f
tree04f20f7d6793741fe4ec2cf67edf7d8b8c47a925
parent9a96726bcd06d565c3027011fea954656aa46668
Remove some redundant calls to updatePosCache

The setting of insets positions was done twice in updateMetrics.
When one of the paragraph is a huge branch, this can be very expensive.

This leads to a 17% improvement on updateMetrics time on a scrolling test.

Part of bug #12297
src/BufferView.cpp