Need a super-fast filestream hashing algorithm

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • cgallery
    Veteran Member
    • Sep 2004
    • 4503
    • Milwaukee, WI
    • BT3K

    #16
    I guess that doesn't entirely surprise me. Calls for checking a filesize can be slow. I still thought they'd be way faster than reading the entire file. Sounds like the MD5 (not familiar with) doesn't read the entire file?
    Last edited by cgallery; 05-29-2009, 06:04 AM.

    Comment

    • Alex Franke
      Veteran Member
      • Feb 2007
      • 2641
      • Chapel Hill, NC
      • Ryobi BT3100

      #17
      Originally posted by cgallery
      I guess that doesn't entirely surprise me. Calls for checking a filesize can be slow. I still thought they'd be way faster than reading the entire file. Sounds like the MD5 (not familiar with) doesn't read the entire file?
      I guess that's what I don't get -- I thought there was an entry for file size in the file allocation table. It seems like of overkill to read in the whole file just to get the file size if the size is already up to date in the allocation table.

      It's as if the MD5 algorithm is written in ASM -- maybe there's a set of processor-dependent implementations in the WinAPI or something. I could only get reasonably close using managed code.
      online at http://www.theFrankes.com
      while ( !( succeed = try() ) ) ;
      "Life is short, Art long, Occasion sudden and dangerous, Experience deceitful, and Judgment difficult." -Hippocrates

      Comment

      Working...