Skip to content

Conversation

@ps2
Copy link
Collaborator

@ps2 ps2 commented Jan 12, 2020

Investigations into delayed display and dosing availability have shown significant cache misses in CarbStore, which results in a HealthKit query. When the phone has been locked for a significant amount of time, HealthKit queries can perform very slowly, as HealthKit is processing journaled data and doing other housekeeping. This fix increases the cache length to a longer value that should eliminate most cache misses.

@marionbarker
Copy link
Contributor

I have run for 2 days with the PR 1234 (24 hours carb store) added to PR 1219 (automated-bolus branch). I believe that I am getting prompt bolus suggestions now when phone has been locked and I wake it up and enter carbs right away.
https://loop.zulipchat.com/#narrow/stream/144182-development/topic/Automatic.20Bolus.20Experimental.20Branch.20%28PR.201219%29/near/185453886

@ps2 ps2 merged commit 169b429 into dev Jan 16, 2020
@ps2 ps2 deleted the carb-cache-length branch January 28, 2020 01:34
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

Successfully merging this pull request may close these issues.

3 participants