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

Constants: Reduce connections_max by 1 #1880

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

sentientwaffle
Copy link
Member

@sentientwaffle sentientwaffle commented Apr 25, 2024

Since MessagePool never has a connection to itself.

Saves a whopping 5MiB of RAM 😛
(This is a "bug" I found while working on a more impactful change -- to not allocate messages for extra connections when replica_count < replica_count_max.)

@sentientwaffle sentientwaffle marked this pull request as ready for review April 25, 2024 19:51
Since `MessagePool` never has a connection to ourself.

Saves a whopping 5MiB of RAM :)
@sentientwaffle sentientwaffle force-pushed the dj-message-pool-connections-max branch from 20a4f64 to 3ea27e4 Compare April 25, 2024 21:45
@sentientwaffle sentientwaffle added this pull request to the merge queue Apr 26, 2024
Copy link
Member

@matklad matklad left a comment

Choose a reason for hiding this comment

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

😄

Merged via the queue into main with commit e3cbfcb Apr 26, 2024
26 checks passed
@sentientwaffle sentientwaffle deleted the dj-message-pool-connections-max branch April 26, 2024 08:32
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