Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Optimize Network Queue (SportPaper-0108) #127

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FirephoenixX02
Copy link

[+] Add CachedSizeConcurrentLinkedQueue from Paper
[~] Change Network Queue in MinecraftServer from ConcurrentLinkedQueue to CachedSizeConcurrentLinkedQueue.
In the Future maybe other Queues can be changed to this for a slight performance increase.

@andreasdc
Copy link

Are you sure that it's better? Incrementing was heavy, I would benchmark it before adding.

@FirephoenixX02
Copy link
Author

FirephoenixX02 commented Nov 4, 2023

Are you sure that it's better? Incrementing was heavy, I would benchmark it before adding.

Im not totally sure, but Paper added it so it seems that they atleast thought it was a good idea. Im don't exactly know how I would Benchmark this but I would do one if I could. It just looked good on paper so I thought I would add it.

@andreasdc
Copy link

Benchmarking would need to test adding and polling from the queue at once.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants