]> git.lyx.org Git - lyx.git/commit
Do not run updateMacros if the buffer has not changed
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 20 Jul 2024 20:31:34 +0000 (22:31 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 24 Jul 2024 16:29:43 +0000 (18:29 +0200)
commit999fb37ebb1aecfda9889fa6a2b2fbb15133f2aa
tree5b219ef67852d3a5b5e9d21e12b97330f9009383
parent6e81f317229a585e4d74b68af967873acd1f74ae
Do not run updateMacros if the buffer has not changed

Each buffer now has an id which is increased when it is marked dirty
(or when one of its relatives is marked dirty).

This can be a big win since updateMacros is very expensive.
src/Buffer.cpp
src/Buffer.h
src/Undo.cpp