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

Fix memory leak in object streams by reusing the same packet instance #285

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

PopSlime
Copy link

Description

Instances of HeartbeatPacket and EarthquakesRequestPacket are sent periodically during a connection. However, these two record classes carry no additional information, so it is safe to reuse a single instance for each of them. As ObjectInputStreams and ObjectOutputStreams track all instances involved in them, this can improve memory usage of the application.

xspanger3770 and others added 6 commits February 23, 2024 19:23
Finally update main branch with 0.11.x version features (336 commits) so that my github profile page lights up like a christmas tree and I can start updating the readme files
@PopSlime PopSlime changed the base branch from main to develop April 26, 2024 07:33
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.

None yet

2 participants