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

Use std::list for WritableImpl::writeRequests. #3217

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

jp4a50
Copy link
Collaborator

@jp4a50 jp4a50 commented Dec 6, 2024

Previously we used std::deque but this has a large memory footprint when empty in practice. Using std::list optimizes memory for the common case of a lot of WritableStreams with empty queues.

Previously we used std::deque but this has a large memory footprint when
empty in practice. Using std::list optimizes memory for the common case
of a lot of WritableStreams with empty queues.
@jp4a50 jp4a50 requested a review from jasnell December 6, 2024 16:52
@jp4a50 jp4a50 requested review from a team as code owners December 6, 2024 16:52
@jp4a50 jp4a50 requested a review from ketanhwr December 6, 2024 16:52
@jp4a50 jp4a50 closed this Dec 6, 2024
@jp4a50 jp4a50 reopened this Dec 6, 2024
@jp4a50 jp4a50 merged commit 4a5f272 into main Dec 6, 2024
25 of 27 checks passed
@jp4a50 jp4a50 deleted the jphillips/empty-writable-stream-memory-optimization branch December 6, 2024 18:28
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