1

I have a code that use TCP connection to obtain data from server with two interfaces: binary and JSON. It works pretty fast and, what is logical, getting binary data is greatly faster than JSON. But it is true only when client is running at the same host with server using localhost roundtrip. When I use remote connection to server, JSON interface is getting faster than binary. As you can see at attached picture, profiling of the same client apps with different connection strings (remote - left part and local - right part of the picture) shows one strange thing: I have a 80% (4166ms from total 5106ms running binary reader method 'ReadAll') of all running time delay at calling something secret at ntdll.dll. Any ideas, what it can be? enter image description here

PS: after testing my .net core application on ubuntu, I exactly know that problem at ntdll.dll, cause it is windows dependency and without this dependency on linux binary reader works fast

0 Answers0