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

Bugfix/missing timer run #353

Merged
merged 3 commits into from
Nov 9, 2022
Merged

Bugfix/missing timer run #353

merged 3 commits into from
Nov 9, 2022

Conversation

OdNairy
Copy link
Collaborator

@OdNairy OdNairy commented Nov 1, 2022

This PR addresses the issue with missing MMETimerManager when the start is called. SDK has a lazy initialization and that's why MMETimerManager construction was postponed. However, if any client (like Maps SDK) will fire an event just after an object initialization it would lead to missing 180sec events flushing timer.
The actual fix is to move MMETimerManager init back to the object construction.
According to my metrics, it takes 90-100 nanoseconds to construct and has very little impact on performance.
Instruments report with multiple runs

Fixes CORESDK-1430

@OdNairy OdNairy requested review from S2Ler, azarovalex and maios and removed request for tarigo November 2, 2022 08:16
@OdNairy OdNairy merged commit 8dc9b65 into main Nov 9, 2022
@OdNairy OdNairy deleted the bugfix/missing-timer-run branch November 9, 2022 10:24
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.

4 participants