Time to load the home page grows linearly with the number of packages installed
This was originally tracked as #794 (closed), but was moved to its own issue because that ticket contained lots of unrelated discussion.
Today I did some testing on a Koombook with an SSD running Ideascube 0.28.1:
Test case | Best of 5 | Average of 5 | Worst of 5 |
---|---|---|---|
0 package installed | 240859 | 254490 | 269107 |
1 package installed | 290943 | 320116 | 339489 |
2 packages installed | 349264 | 365158 | 369918 |
3 packages installed | 355456 | 385576 | 403352 |
4 packages installed | 395834 | 421828 | 465303 |
5 packages installed | 451208 | 473868 | 493201 |
10 packages installed | 579263 | 595845 | 633695 |
20 packages installed | 870039 | 898294 | 918156 |
If we hide all the package cards in the settings, then we are ~50000µs faster.
We should probably try and see what can be improved.
A cache (so we don't parse the YAML file every time) might help, but first, let's profile for real.