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

[BACKPORT][CENNSO-871] fix: use doubly linked list for flows #368

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

mogaika
Copy link
Collaborator

@mogaika mogaika commented Dec 1, 2023

Backport CENNSO-871 fix: use doubly linked list for flows

With singly linked list we have complexity of O(n) for deletion what caused overload in case if single session had lots of flows. Especially because most of flows usually expire near end of list.

[CENNSO-871] fix: use doubly linked list for flows

With singly linked list we have complexity of O(n) for deletion
what caused overload in case if single session had lots of flows.
Especially because most of flows usually expire near end of list.
@mogaika mogaika changed the title [CENNSO-871] fix: use doubly linked list for flows (#365) [CENNSO-871] fix: use doubly linked list for flows Dec 1, 2023
@mogaika mogaika marked this pull request as ready for review December 1, 2023 09:54
@korroot korroot added the fix label Dec 1, 2023
@korroot korroot requested a review from demo-exe December 1, 2023 10:33
@korroot korroot changed the title [CENNSO-871] fix: use doubly linked list for flows [BACKPORT][CENNSO-871] fix: use doubly linked list for flows Dec 1, 2023
@korroot korroot merged commit a6502cd into stable/1.9 Dec 1, 2023
@korroot korroot deleted the CENNSO-871/doubly-linked-list-fix-backport branch December 1, 2023 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants