Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror

Slashdot videos: Now with more Slashdot!

  • View

  • Discuss

  • Share

We've improved Slashdot's video section; now you can view our video interviews, product close-ups and site visits with all the usual Slashdot options to comment, share, etc. No more walled garden! It's a work in progress -- we hope you'll check it out (Learn more about the recent updates).

×
Java

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

Submitted by rsk
rsk (119464) 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:

The Tao is like a glob pattern: used but never used up. It is like the extern void: filled with infinite possibilities.

Working...