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

Optimize sending stored messages #75

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

nedimtokic
Copy link
Collaborator

@nedimtokic nedimtokic commented Jun 28, 2024

After reconnecting, while sending saved messages, the SDK uses more and more memory as time passes.
After testing the function for resending stored messages, we found that the recursive function doesn't dispose objects.  
This PR optimises the recursive function, so it consumes fewer resources. Function ResendFailedMessages is moved out of try/catch block.

Optimize recursive function so it consumes less
resources

Signed-off-by: nedimtokic <nedim.tokic@secomind.com>
@harlem88 harlem88 merged commit d385856 into astarte-platform:master Jun 28, 2024
4 of 5 checks passed
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