|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: expat question: processStream vs processFile/filemap
James K. Tauber wrote: > > As I've mentioned before, I'm writing some documentation for expat and I'm > currently doing a walkthrough of xmlwf. My lack of knowledge of C file I/O > is letting me down. > > Can somebody who has worked with the expat source (or who is at least > willing to have a quick look at xmlwf.c) tell me what the difference is > between using processStream and using processFile/filemap? Why is it a > command-line option? > Why would you pick one over the other? Using file mapping is typically more efficient, but you might need to use processStream if: - your OS doesn't support file mapping (although xmlwf can fake it by reading the entire file into memory) - you don't want to deal with the portability problems that using file mapping brings - you have files larger than can be mapped (eg > 2Gb) - you are reading from a network connection or pipe rather than a file It's a command-line option for testing purposes. James xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i... Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ To (un)subscribe, mailto:majordomo@i... the following message; (un)subscribe xml-dev To subscribe to the digests, mailto:majordomo@i... the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@i...)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








