NetCoreServer icon indicating copy to clipboard operation
NetCoreServer copied to clipboard

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

Open c10ud opened this issue 3 months ago • 0 comments

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.

c10ud avatar Mar 21 '24 08:03 c10ud