CRE call cache: don't reset on setPageInfoOverride (#12123)

Fix slowness when top status bar enabled on books
with a large number of highlights.
This commit is contained in:
poire-z
2024-06-29 17:15:45 +02:00
committed by GitHub
parent 0faccff9bc
commit 7ef3e475cb

View File

@@ -1812,6 +1812,7 @@ function CreDocument:setupCallCache()
-- Assume all set* may change rendering
if name == "setBatteryState" then no_wrap = true -- except this one
elseif name == "setPageInfoOverride" then no_wrap = true -- and this one
elseif name:sub(1,3) == "set" then add_reset = true
elseif name:sub(1,6) == "toggle" then add_reset = true
elseif name:sub(1,6) == "update" then add_reset = true