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 the memory and performance handling delivery response status codes #1558

Merged
merged 1 commit into from
Dec 14, 2021

Conversation

lemnik
Copy link
Contributor

@lemnik lemnik commented Dec 14, 2021

Goal

Improve the memory use and performance of DefaultDelivery.getDeliveryStatus by avoiding the allocation and searching of a List<Int>.

Changeset

Replaced the IntRange and filter with an equivalent method isUnrecoverableStatusCode which performs a simple set of comparisons.

Testing

Additional unit tests added to cover more of the unrecoverable errors

@lemnik lemnik force-pushed the lemnik/delivery-status-upgrade branch from 78567be to bd276d5 Compare December 14, 2021 10:29
Copy link
Contributor

@fractalwrench fractalwrench left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lemnik lemnik merged commit 3355cc5 into next Dec 14, 2021
@lemnik lemnik deleted the lemnik/delivery-status-upgrade branch December 14, 2021 11:12
@lemnik lemnik mentioned this pull request Jan 5, 2022
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.

2 participants