Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve loading time #1

Open
sebikolon opened this issue Apr 30, 2018 · 0 comments
Open

Improve loading time #1

sebikolon opened this issue Apr 30, 2018 · 0 comments

Comments

@sebikolon
Copy link
Collaborator

When the MedDoser was turned off for a longer time (e.g. three weeks), entries are created within the persistence file Persistence_MedDoser.xml for each missed day.
When the device gets turned on again for the first time, the UI is acting remarkable slower than intended.

The probably reason for this behaviour is

  1. The large number of entries must be read from the persistence file (once) and handled in the background (many string comparisons), then saved in a data structure in the RAM.
  2. Searching the data structure in the RAM

Probably solution: Store all the data in an SQLite database instead of an XML file, because the columns of the database are already assigned to datatypes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant