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

latency in reception of the first UDP frames (lazy?) #291

Open
c10ud opened this issue Mar 21, 2024 · 0 comments
Open

latency in reception of the first UDP frames (lazy?) #291

c10ud opened this issue Mar 21, 2024 · 0 comments

Comments

@c10ud
Copy link

c10ud commented Mar 21, 2024

Hello,

I made a test program which simply spawns an UDP server and compares the time in milliseconds between what's contained in the payload of the received frames and the time the comparison happens.
The frames are sent by another process running on the same machine.

What happens is that after starting listening, the first few received frames present an higher latency, then quickly the system is able to pin it down to 1ms or less.

I suspect it is due to lazy loading of something. maybe in NET internals (since I get the same behaviour with plain NET8)..subsequent restarts of the server achieve full speed from the start.

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

No branches or pull requests

1 participant