Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Multithreaded XML file parsing?



OTOH, this objection assumes the files are either very large or being read byte-by-byte. If you know you can benefit by processing in multiple threads, you can get around the disk contention problem by using buffered readers or scarfing the entire file into memory all at once.

-- ross

At 10:11 AM -0700 8/22/06, email@hidden wrote:

Be aware that this may not be a good idea. Your computer may have multiple CPUs, but unless you're reading from a RAID or some other high end storage device, your disk probably only has one read head. If you try to read several files at once, that head is going to be jumping all over the place. That will be much slower than just reading and parsing the files one at a time.

Peter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.