Skip to content

Conversation

@wassim-k
Copy link

@wassim-k wassim-k commented Jan 17, 2026

Performance of SessionTimeoutWindow degrades rapidly with large data stream due to the internal LinkedList growing in size and the linear Find method on the list slowing down over time for sessions with longer timeout.

This PR replaces LinkedList with a Queue, this change improves performance by up to 100x for large data streams.

All tests pass.

@wassim-k
Copy link
Author

wassim-k commented Jan 17, 2026

@microsoft-github-policy-service agree

@wassim-k wassim-k force-pushed the session-window-pipe-priority-queue branch from 6d8fd8d to 837b4f1 Compare January 18, 2026 20:44
@wassim-k wassim-k changed the title Refactor SessionWindowPipe to use PriorityQueue instead of LinkedList Refactor SessionWindowPipe to use Queue instead of LinkedList Jan 18, 2026
@wassim-k wassim-k closed this Jan 18, 2026
@wassim-k wassim-k deleted the session-window-pipe-priority-queue branch January 18, 2026 20:47
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.

1 participant