PC Review


Reply
Thread Tools Rate Thread

ComputeHash on large stream

 
 
semedao
Guest
Posts: n/a
 
      27th Dec 2006
Hi,
I saw that when I use ComputeHash on large file stream
the ComputeHash method don't read all the stream first and than hash it , it's read it in chunks (memory performance?)
How can I know the chunk size in each read ?
and how can I control it?
If I will change the chunk - it's can change the ComputeHash result ?
thanks
 
Reply With Quote
 
 
 
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      27th Dec 2006
semedao <(E-Mail Removed)> wrote:
> I saw that when I use ComputeHash on large file stream the
> ComputeHash method don't read all the stream first and than hash it ,
> it's read it in chunks (memory performance?) How can I know the chunk
> size in each read ? and how can I control it? If I will change the
> chunk - it's can change the ComputeHash result ?


The results shouldn't change - why are you particularly bothered about
the chunk size? Why do you want to control it?

--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use ADODB.Stream for large files bb2j3z Microsoft ASP .NET 1 12th Dec 2008 07:59 PM
Stream large file in WSE 3.0 Hardy Wang Microsoft ASP .NET 5 4th Oct 2006 05:39 AM
Stream large file in WSE 3.0 Hardy Wang Microsoft C# .NET 5 4th Oct 2006 05:39 AM
Copying large .jpg to DVD error stream loss =?Utf-8?B?R2xlbm4gZnJvbSBXYXNoaW5ndG9u?= Windows XP General 2 28th Jul 2005 07:59 PM
How do I import a large XML stream using VB6 or VB.NET Eric Microsoft Dot NET 0 23rd Oct 2003 08:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:37 PM.