StanfordSpezi / SpeziScheduler

Scheduler Module for the Stanford Spezi Ecosystem
https://swiftpackageindex.com/StanfordSpezi/SpeziScheduler/documentation/
MIT License
3 stars 3 forks source link

Improve performance of event scheduling. #39

Open Supereg opened 6 months ago

Supereg commented 6 months ago

Problem

Currently, the scheduling of the events of a single task can take several seconds. This results in some delay when opening the app for the first time.

Solution

Analyze the underlying issue (presumably the scheduling of the notifications) and optimize scheduling of task to be faster (e.g., might show up earlier in UI while notifications are still scheduler).

Additional context

No response

Code of Conduct

PSchmiedmayer commented 6 months ago

Thank you for documenting the issue @Supereg!

My best guess is that this is related to the current mechanism on either how elements are persisted that could take a substantial amount of time, or how the calculations and especially notification registration is performed that can take a substantial amount of time.