Slow down of autosave due to tasklist update

Reported by Jaap Karssenberg on 2012-07-05
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zim
High
Unassigned

Bug Description

Tasklist dialog is updated when a page is indexed on autosave, for large number of tasks in the database (not in the page being saved) this blocks the autosave and causes lag. In addition to that the tasklist dialog is not properly disconnected when it is closed, so opening it several times results in multiple instances, amplifying the issue.

Two fixes needed:
1/ Detach dialog update from indexing - make it asynchronously / update on focus of the dialog / ..
2/ Fix destruction of tasklist dialog

In addition updating of the dialog may be improved.

See discussion in related question for details

Changed in zim:
status: New → Confirmed
importance: Undecided → High

Committed fix in rev561 that
1/ takes care dialog is properly disconnected
2/ delays update of dialog to "idle" event

This is not a full fix, since the "idle" event can still cause lag in the typing if it takes too long. Would need to make it full asynchronous to get rid of that. But in order to do so we need to create the infrastructure to make the SQLite index thread save (e.g. by assigning it it's own thread).

Changed in zim:
status: Confirmed → In Progress
tags: added: index
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions