James<br />SCJP 1.4 - 92%<br />SCJD - 93%<br />SCWCD 1.4 - 95%<br />SCBCD 1.3 - 100%<br />SCEA - 92%
James<br />SCJP 1.4 - 92%<br />SCJD - 93%<br />SCWCD 1.4 - 95%<br />SCBCD 1.3 - 100%<br />SCEA - 92%
MCP (C# application dev 70-316) 860<br />SCJP 1.4 100% SCJD (URLyBird) 378<br />MAD 100% nuts
SCJP 1.4<br />(WIP) SCJD B&S v2.3.3
James<br />SCJP 1.4 - 92%<br />SCJD - 93%<br />SCWCD 1.4 - 95%<br />SCBCD 1.3 - 100%<br />SCEA - 92%
Originally posted by James Turner:
We can't use NIO for this assignment.
Talk about limiting your options..!!
James.
[ October 08, 2004: Message edited by: James Turner ]
SCJP 1.4<br />(WIP) SCJD B&S v2.3.3
Originally posted by Nicky Bodentien:
I would say a good old RandomAccessFile has all we need and is easy to use. If the reason you want to use NIO is performance, then you are] probably going over the top :-). No matter how concurrently you try to read from a file, then unless you have a really fancy harddisk, the mechanical parts are probably going to be a bottleneck anyway. So, as Inuka suggests, a cache is a better option in terms of performance.
Implement caching if you want to learn something from it, but you don't have to since the SCJD isn't about performance. Your operating system or the RandomAccessFile implementation (which, by the way uses NIO internally in JDK 1.4) is going to do a little caching itself, so things should run smoothly enough.
Consider Paul's rocket mass heater. |