Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
For the out-of-band Slashdot experience (mostly headlines), follow us on Twitter, or Facebook. ×
Java

+ - Java IO Faster Than NIO – Old is New Again->

rsk writes: Paul Tyma, the man behind Mailinator, has put together an excellent performance analysis comparing old-school (java.io.*) synchronous programming to Java's (java.nio.*) asynchronous programming showing a consistent 25% performance deficiency with the asynchronous code. As it turns out, old-style blocking I/O with modern threading libraries like Linux NPTL and multi-core machines gives you idle-thread and non-contending thread management for an extremely low cost; less than it takes to switch-and-restore connection state constantly with a selector approach.
Link to Original Source
This discussion was created for logged-in users only, but now has been archived. No new comments can be posted.

Java IO Faster Than NIO – Old is New Again

Comments Filter:

In a consumer society there are inevitably two kinds of slaves: the prisoners of addiction and the prisoners of envy.

Working...