David Can you spell that out, please - ie, what in Preet's latest post is not correct? And why would we use memory-mapped files (in the scenario posed by Bec Carter)?
________________________________ Ian Thomas Victoria Park, Western Australia -----Original Message----- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of David Kean Sent: Tuesday, February 08, 2011 1:29 AM To: ozDotNet Subject: RE: Placeholders in large text file There's no reason you can't treat that memory as a normal text (ie pass the view's stream to StreamReader). -----Original Message----- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Bill McCarthy Sent: Sunday, February 06, 2011 7:32 PM To: 'ozDotNet' Subject: RE: Placeholders in large text file There's caveats on that. Frist off it means you're using pointers kind-of approach which is good but it also means you immediately lose all built in text comparison options other than binary equality. The other big caveat is you need to endure replacements are the same size otherwise you end up moving a lot of memory around each time you make a replacement Bec Carter)? |-----Original Message----- |From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet- |boun...@ozdotnet.com] On Behalf Of Preet Sangha |Sent: Monday, 7 February 2011 2:28 PM |To: ozDotNet |Subject: Re: Placeholders in large text file | |Sorry for hijacking the thread - but can i recommend the use of Memory |Mapped Files for reading and writing large files? This will make it far |far quicker as changes pages in memory won't need to be stored in the |system page file. | |