Java IO Faster Than NIO 270
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."
Re:And this is news? (Score:4, Funny)
Re:And this is news? (Score:3, Funny)
Perl is not New Fangled. I am sorry to say Perl is one of those .COM languages that has sparked peoples interest for a few years but have settled down to niche language. So it is now an Old School Language... Sorry...
:o
GET OFF MY LAWN!
Re:And this is news? (Score:3, Funny)
Re:And this is news? (Score:5, Funny)
Re:And this is news? (Score:2, Funny)
With regard to Perl OO, I'm reminded of one of my favorite quotes, I think it's from Advacned Perl Programming. Requires some explanation for those not Perl nerds.
For those unfamiliar, Perl's idea of "objects" are effectively just an OO framework on top of a procedural model. So you have packages, think C++ namespace. All a Perl object is, is a hash that is "blessed" into the package. You just call bless $hashref,package; and it makes it so you can do neat shit like $hashref->doShit, and then $hashref is just the first parameter. Well, part of this, and because it's just a hash reference...there is no encapsulation or protection...no private, no protected..etc.
I was concerned about this, and the book I was reading noted someone might be. It's response was "Perl takes the approach that you should stay out of its living room because you're uninvited, not because it's holding a shotgun."
That's Perl programming in a nutshell :)
Re:Should be using Scatter/Gather +IOCP on windows (Score:1, Funny)
They're actually WriteFileGather and ReadFileScatter. APIs that scattered data around the disk would not be good for performance ;)
Re:And this is news? (Score:4, Funny)
Some people are less afraid of SkyNet than they are of regular expressions.
Re:True for JAVA, but not generally true... (Score:3, Funny)
You're head of R&D for a supervillain's start-up attempting to kill the internet?