New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Note list: Slower to update in version 2.14 and 3.0 than 2.13 #10284
Comments
Likely related to/a duplicate of #10203 |
First of all, great bug report! I will have a look and tell you what I've discovered. |
Alright, I got an update: The problem seems to be in the if (sortNoteList) {
if (sortNoteListTimeout) shim.clearTimeout(sortNoteListTimeout);
sortNoteListTimeout = null;
// We sort the note lists with two seconds debounce because doing can be
// very slow and would have to be done every time a note is added.
if (Date.now() - newState.noteListLastSortTime > 10000) {
dispatch({ type: 'NOTE_SORT' });
} else {
sortNoteListTimeout = shim.setTimeout(() => {
sortNoteListTimeout = null;
dispatch({ type: 'NOTE_SORT' });
}, 2000);
}
} |
Oh and one more thing. |
Operating system
Linux
Joplin version
3.0.2
Desktop version info
Joplin 3.0.2 (dev, linux)
Client ID: 5cd73fa94f1c4847a76b5ee095980929
Sync Version: 3
Profile Version: 46
Keychain Supported: No
Revision: b3f4414
Backup: 1.4.1
Current behaviour
See https://discourse.joplinapp.org/t/performance-issue/37207/19
In Joplin 2.14+, the note list takes several seconds to update its sorting, while in Joplin 2.13, it was very fast.
note-list-demo.mp4
Expected behaviour
The note list sorting should update quickly in Joplin 2.14 and Joplin 3.0, as it did in Joplin 2.13.
Logs
No response
The text was updated successfully, but these errors were encountered: