How Performance down slow it is using UFCS friendly function?
Marcone
marcone at email.com
Sat Nov 21 00:26:03 UTC 2020
// Função receive()
char[] receive(Socket socket, int size = 8192) nothrow {
try {
char[] buffer;
buffer.length = size;
int rq = socket.receive(buffer);
return buffer[0..rq];
} catch(Throwable){return null;}
}
s = new Socket(AddressFamily.INET, SocketType.STREAM);
writeln(s.receive(8192)); // How slow is using as friendly
function?
More information about the Digitalmars-d-learn
mailing list