Commit 0de37dc
committed
perf: cache the selective sync list in the journal
getSelectiveSyncList() runs a full query and materializes the whole list on
every call, and Folder::warnOnNewExcludedItem() calls it once per file added to
the sync folder. The list only changes when the user edits the selective sync
configuration, so keep it in memory and drop it in setSelectiveSyncList(), the
only writer of the table, and on close().
Signed-off-by: Felipe Tumonis <ftumonis@gmail.com>1 parent 30af271 commit 0de37dc
2 files changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
703 | 703 | | |
704 | 704 | | |
705 | 705 | | |
| 706 | + | |
706 | 707 | | |
707 | 708 | | |
708 | 709 | | |
| |||
2380 | 2381 | | |
2381 | 2382 | | |
2382 | 2383 | | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
| 2387 | + | |
| 2388 | + | |
| 2389 | + | |
2383 | 2390 | | |
2384 | 2391 | | |
2385 | 2392 | | |
| |||
2408 | 2415 | | |
2409 | 2416 | | |
2410 | 2417 | | |
| 2418 | + | |
| 2419 | + | |
2411 | 2420 | | |
2412 | 2421 | | |
2413 | 2422 | | |
| |||
2418 | 2427 | | |
2419 | 2428 | | |
2420 | 2429 | | |
| 2430 | + | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
2421 | 2434 | | |
2422 | 2435 | | |
2423 | 2436 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
434 | 443 | | |
435 | 444 | | |
436 | 445 | | |
| |||
0 commit comments