improve deletion of consecutive variables #55357
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Fri, 5 Jun 2020 06:26:13 +0000 (08:26 +0200)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Fri, 5 Jun 2020 06:36:01 +0000 (08:36 +0200)
commit2bbf5d66eeeffdbcded913145f05b9a6046056fa
tree7f654395aefca7c906ed34ad18a59f58db91d7e9
parent56e6166660c0f1388cad4cb4d3189e026bc84dd5
improve deletion of consecutive variables #55357

Deleting many variables (like 300) via the gui
in a dataset with many variables (like 500) results
in long gui response times because each variable is
deleted individually by iteration. This results in many
items-changed callbacks which will result in long
gui waiting times. This patch reduces the number of
callbacks and the gui response is much faster.
src/data/dictionary.c
src/ui/gui/psppire-dict.c