-
Notifications
You must be signed in to change notification settings - Fork 0
Description
When OpenPdroid is installed, the phone lags a lot when the camera app is open.
This is due to the database being rapidly opened and closed by the PrivacyPersistenceAdapter. It hadn't occurred in the past because a bug in the PrivacyPersistenceAdapter (since the very original PDroid) prevented the 'idle database closing' code triggering. When this bug was fixed, the database started being opened and closed very rapidly - which is what it was designed to do, but kills performance.
An experimental fix is in the jb-mr1-release-openpdroid-devel branches, and cm10.1 and aokp jb-mr1 equivalents. This fix does not prevent the database from opening and closing (which will probably be modified in future) but rather adds a least-recently-used clearing cache to reduce database calls.