optimize removing from the LOK flush queue

Desktop / LibreOffice - Luboš Luňák [collabora.com] - 28 September 2021 11:46 UTC

All the lambdas check for event type, so it makes sense to first separately check the type and only then possibly call the lambda. Especially since 3b3e4ee97af23f21 separated the types for better searching.

Change-Id: I144c88f5319ac2141336e1aa3c4ffd7b38265af9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122673

6e060ba9e8c4 optimize removing from the LOK flush queue
desktop/inc/lib/init.hxx | 3 +
desktop/source/lib/init.cxx | 204 ++++++++++++++++++++++++--------------------
2 files changed, 114 insertions(+), 93 deletions(-)

Upstream: cgit.freedesktop.org


  • Share