Commit bb049a4
committed
thumbnails: generate/load thumbnails on visible items only, and drop
background loading.
Views load much more quickly when delaying any thumbnail processing
until all items are fully loaded.
An attempt is made to load 'ahead' and 'behind' the visible range,
but in the list view, the current api does not allow scanning for
rows 'above' the current view position, only below. As a result,
scrolling a view down in the list view will reveal icons that have
already been queued to load their thumbnail, but scrolling up will
not. This behavior works properly in the icon views in both
directions.1 parent 6ae5ef8 commit bb049a4
File tree
17 files changed
+392
-109
lines changed- libnemo-private
- src
17 files changed
+392
-109
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1645 | 1645 | | |
1646 | 1646 | | |
1647 | 1647 | | |
1648 | | - | |
| 1648 | + | |
1649 | 1649 | | |
1650 | 1650 | | |
1651 | 1651 | | |
| |||
1692 | 1692 | | |
1693 | 1693 | | |
1694 | 1694 | | |
1695 | | - | |
| 1695 | + | |
| 1696 | + | |
1696 | 1697 | | |
1697 | 1698 | | |
1698 | 1699 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
| |||
221 | 223 | | |
222 | 224 | | |
223 | 225 | | |
224 | | - | |
| 226 | + | |
| 227 | + | |
225 | 228 | | |
226 | 229 | | |
227 | 230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
| 504 | + | |
504 | 505 | | |
505 | 506 | | |
506 | 507 | | |
| |||
564 | 565 | | |
565 | 566 | | |
566 | 567 | | |
567 | | - | |
| 568 | + | |
568 | 569 | | |
569 | 570 | | |
570 | 571 | | |
| |||
676 | 677 | | |
677 | 678 | | |
678 | 679 | | |
679 | | - | |
| 680 | + | |
680 | 681 | | |
681 | 682 | | |
682 | 683 | | |
| |||
865 | 866 | | |
866 | 867 | | |
867 | 868 | | |
| 869 | + | |
| 870 | + | |
868 | 871 | | |
869 | 872 | | |
870 | 873 | | |
| |||
877 | 880 | | |
878 | 881 | | |
879 | 882 | | |
880 | | - | |
| 883 | + | |
881 | 884 | | |
882 | 885 | | |
883 | 886 | | |
| |||
893 | 896 | | |
894 | 897 | | |
895 | 898 | | |
896 | | - | |
| 899 | + | |
897 | 900 | | |
898 | 901 | | |
899 | 902 | | |
| |||
1639 | 1642 | | |
1640 | 1643 | | |
1641 | 1644 | | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
1642 | 1657 | | |
1643 | 1658 | | |
1644 | 1659 | | |
| |||
4342 | 4357 | | |
4343 | 4358 | | |
4344 | 4359 | | |
| 4360 | + | |
| 4361 | + | |
| 4362 | + | |
| 4363 | + | |
| 4364 | + | |
| 4365 | + | |
4345 | 4366 | | |
4346 | 4367 | | |
4347 | 4368 | | |
| |||
4636 | 4657 | | |
4637 | 4658 | | |
4638 | 4659 | | |
4639 | | - | |
| 4660 | + | |
4640 | 4661 | | |
4641 | 4662 | | |
4642 | 4663 | | |
| |||
4727 | 4748 | | |
4728 | 4749 | | |
4729 | 4750 | | |
4730 | | - | |
| 4751 | + | |
4731 | 4752 | | |
4732 | 4753 | | |
4733 | 4754 | | |
4734 | 4755 | | |
4735 | | - | |
| 4756 | + | |
4736 | 4757 | | |
4737 | 4758 | | |
4738 | 4759 | | |
| |||
8019 | 8040 | | |
8020 | 8041 | | |
8021 | 8042 | | |
| 8043 | + | |
| 8044 | + | |
| 8045 | + | |
| 8046 | + | |
| 8047 | + | |
| 8048 | + | |
| 8049 | + | |
8022 | 8050 | | |
8023 | 8051 | | |
8024 | 8052 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| |||
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
| 244 | + | |
243 | 245 | | |
244 | 246 | | |
245 | 247 | | |
| |||
521 | 523 | | |
522 | 524 | | |
523 | 525 | | |
524 | | - | |
| 526 | + | |
525 | 527 | | |
526 | 528 | | |
527 | 529 | | |
| |||
0 commit comments