Re: Decoding strategy
- From: marcin.rzeznicki@xxxxxxxxx
- Date: 10 Oct 2006 10:50:41 -0700
Kevin Spencer napisal(a):
I would use a FileStream instance to read the file. The FileStream class
supports random access to files, allowing you to jump around in the file.
You can read as little or as much as you want into memory when you need to.
Hello Kevin
Thanks for reply.
I didn't test performance with FileStream, but maybe you can confirm -
Does File Stream caches contents of file in memory? I think there is
slight speedup when using memory mapping in that I do not have to hit
the disk all the time. In my solution I simply open mapping over whole
file and create views as needed. Anyway, let's say that I did it using
FileStream, I can read some bytes from it, but I still face the same
problem - how to interpret first bytes I have read, whether they are
beginning of character, or maybe end of "previous" character?
.
- Follow-Ups:
- Re: Decoding strategy
- From: Peter Duniho
- Re: Decoding strategy
- From: Kevin Spencer
- Re: Decoding strategy
- References:
- Decoding strategy
- From: marcin . rzeznicki
- Re: Decoding strategy
- From: Kevin Spencer
- Decoding strategy
- Prev by Date: Re: Place of BeginTransaction in code
- Next by Date: Re: Security in windows forms apps
- Previous by thread: Re: Decoding strategy
- Next by thread: Re: Decoding strategy
- Index(es):
Relevant Pages
|