Home > slashdot > Java IO Faster Than NIO

Java IO Faster Than NIO

July 27th, 2010 07:26 admin Leave a comment Go to comments

rsk writes “Paul Tyma, the man behind Mailinator, has put together an excellent performance analysis comparing old-school synchronous programming (java.io.*) to Java’s asynchronous programming (java.nio.*) — 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.”

Source: Java IO Faster Than NIO

Related Articles:

  1. Canonical To Remove Sun Java From Repositories, Users’ Machines
  2. Java API and Microsoft’s .NET API: a Comparison
  3. Java 7 Ships With Severe Bug
  4. Recent Apple Java Update Doesn’t Fix Critical Java Flaw Claims Researcher
  5. Google Engineer Decries Complexity of Java, C++
blog comments powered by Disqus