Slashdot Mirror


Java IO Faster Than NIO

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."

2 of 270 comments (clear)

  1. Re:And this is news? by HFXPro · · Score: -1, Offtopic

    I meant to say java io is not particularly hard to use. I personally find nio harder to use. Does anyone know how to disable the touch pad on a Sony VIAO running Ubuntu? Just disabling the device from System->Preferences doesn't seem to work.

    --
    Reserved Word.
  2. Re:And this is news? by icebraining · · Score: 0, Offtopic

    Bash still wins: unzip, strip, touch, finger, grep, mount, fsck, more, yes, fsck, fsck, fsck, umount, sleep.