]> git.lyx.org Git - features.git/commit
Avoid duplicate checks in CoordCache
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 6 Oct 2021 11:06:45 +0000 (13:06 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 8 Oct 2021 16:17:19 +0000 (18:17 +0200)
commit0fff65a16aed6a41bbb53958d9f5aff92984d372
tree6f9813eda63d5765348d285d5799d17de7718426
parente5bb491e2e10a8097284d11eae5501a3673731cb
Avoid duplicate checks in CoordCache

The code is written in such a way that the elements are searched
several times. This can be expensive when there are a lots of insets
in the document.

Concerning the sanity checks, they are now conditionned on the
presence of assertion.

Related to bug #12297.
src/CoordCache.h