Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #28564
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: NIO not so hot |
| Date | 2014-05-26 01:24 -0700 |
| Organization | Canadian Mind Products |
| Message-ID | <81u5o9pfr44rtq9loivhrpe178lcql92r5@4ax.com> (permalink) |
| References | <t24en9putph3mbnulkveghdjbrnisp105h@4ax.com> <btrkdnFjc3qU1@mid.individual.net> |
On Sun, 18 May 2014 13:38:30 +0200, Robert Klemme <shortcutter@googlemail.com> wrote, quoted or indirectly quoted someone who said : >However, the test is quite unrealistic since this is not how NIO is >usually used. With this particular benchmark I was not trying to demonstrate the use of NIO, but decide the optimal way to read a whole file of characters at a time, something I do very often. Even though I have written some code that at least functions using NIO I can't say I understand it. I primarily just glue together methods based on the types of parameters and return types. I don't have an overall picture of how it works or why it works, or what it is for, as I do for ordinary I/O. I just have vague notion that if you keep your data in buffers, off the Java heap, and ignore most of it, NIO will work faster than ordinary I/O. I would be happy to post some sample code, explanations etc. at http://mindprod.com/jgloss/nio.html if you are up to expounding on NIO. -- Roedy Green Canadian Mind Products http://mindprod.com Young man, in mathematics you don’t understand things. You just get used to them. ~ John von Neumann (born: 1903-12-28 died: 1957-02-08 at age: 53)
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
NIO not so hot Roedy Green <see_website@mindprod.com.invalid> - 2014-05-17 04:28 -0700
Re: NIO not so hot Robert Klemme <shortcutter@googlemail.com> - 2014-05-18 13:38 +0200
Re: NIO not so hot Robert Klemme <shortcutter@googlemail.com> - 2014-05-18 13:38 +0200
Re: NIO not so hot Robert Klemme <shortcutter@googlemail.com> - 2014-05-18 14:12 +0200
Re: NIO not so hot Robert Klemme <shortcutter@googlemail.com> - 2014-05-18 19:09 +0200
Re: NIO not so hot Roedy Green <see_website@mindprod.com.invalid> - 2014-05-26 00:51 -0700
Re: NIO not so hot Robert Klemme <shortcutter@googlemail.com> - 2014-05-26 20:14 +0200
Re: NIO not so hot Roedy Green <see_website@mindprod.com.invalid> - 2014-05-26 01:15 -0700
Re: NIO not so hot Roedy Green <see_website@mindprod.com.invalid> - 2014-05-26 01:24 -0700
Re: NIO not so hot Robert Klemme <shortcutter@googlemail.com> - 2014-05-26 23:50 +0200
Re: NIO not so hot Rupert Smith <rupertlssmith@googlemail.com> - 2014-05-31 02:29 -0700
Re: NIO not so hot Robert Klemme <shortcutter@googlemail.com> - 2014-06-01 12:15 +0200
Re: NIO not so hot Rupert Smith <rupertlssmith@googlemail.com> - 2014-06-02 07:37 -0700
Re: NIO not so hot Robert Klemme <shortcutter@googlemail.com> - 2014-06-03 23:07 +0200
Re: NIO not so hot Rupert Smith <rupertlssmith@googlemail.com> - 2014-06-06 01:32 -0700
Re: NIO not so hot Rupert Smith <rupertlssmith@googlemail.com> - 2014-06-02 07:46 -0700
csiph-web