3 ms·
Java can get even much much faster: https://gist.github.com/justjanne/12306b797f4faa977436070ec0bd865f https://gist.github.com/justjanne/12306b797f4faa977436070
by kuschku 4y ago
Java can get even much much faster: https://gist.github.com/justjanne/12306b797f4faa977436070ec0bd865f https://gist.github.com/justjanne/12306b797f4faa977436070ec0...
That manages about 7 GiB/s reusing the same buffer, or about 300 MiB/s with clearing and refilling the buffer every time
(the magic is in using java’s APIs for writing to files/sockets, which are designed for high performance, instead of using the APIs which are designed for writing to stdout)
- rhyn00 4y agoNice, that's pretty cool!