You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.
Scrolling in table view mode is really choppy and slow in presence of image fields (columns).
Especially when the image files are big and there are more than one image columns.
Implementing caching of images in memory works and the result is a smooth scrolling experience.
I tested this by using QPixmapCache with a larger database with 2 image columns.
The big disadvantage is that this increases memory usage dramatically: symphytum uses around 30-50 MiB now, with this patch it uses at least 900 MiB to 1.3 GiB memory (only if needed).
On modern computers with large amounts of RAM this is not a problem, but many still use notebooks with 2GiB RAM.
I think, it would be possible to check RAM availability and enable this optimization only on high end (RAM at least 4 GiB) machines. And of course, providing an option in the setting to disable this.
EDIT: it makes sense to clear the cache before printing as printing requires all free resources in case the database file is really big...
EDIT2: Qt5 doesn't offer a way to check for system RAM, so either a new utility needs to beimplemented for each platform or the default state for this should be disabled and an option provided in the settings to enable it.
The text was updated successfully, but these errors were encountered:
Scrolling in table view mode is really choppy and slow in presence of image fields (columns).
Especially when the image files are big and there are more than one image columns.
Implementing caching of images in memory works and the result is a smooth scrolling experience.
I tested this by using QPixmapCache with a larger database with 2 image columns.
The big disadvantage is that this increases memory usage dramatically: symphytum uses around 30-50 MiB now, with this patch it uses at least 900 MiB to 1.3 GiB memory (only if needed).
On modern computers with large amounts of RAM this is not a problem, but many still use notebooks with 2GiB RAM.
I think, it would be possible to check RAM availability and enable this optimization only on high end (RAM at least 4 GiB) machines. And of course, providing an option in the setting to disable this.
EDIT: it makes sense to clear the cache before printing as printing requires all free resources in case the database file is really big...
EDIT2: Qt5 doesn't offer a way to check for system RAM, so either a new utility needs to beimplemented for each platform or the default state for this should be disabled and an option provided in the settings to enable it.
The text was updated successfully, but these errors were encountered: