Multicore sfv/sha creation

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
hlloyge
Member
Member
Posts: 131
Joined: 2006-11-02, 23:14 UTC

Multicore sfv/sha creation

Post by *hlloyge »

Right now, when I select files and check "create sfv", the files are read one after another, checksum is calculated, and written in file.
It would be very nice if we could use our multi-core cpus and fast HDDs/SSDs so we could create checksums in parallel.
No harm done - it works with some other software, and is considerably faster if there is lots of files in folder.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Currently CPUs are much faster than HDDs so hash calculation loads more HDD than CPU so using separate cores won't speed hashing up because of busy HDD.
Sob
Power Member
Power Member
Posts: 945
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

I wouldn't be so sure about it. Many people have SSDs and those are fast. And even without SSD, TC's hashing speeds are not very fast (see my test from last year; I did a quick check now and it seems it did not change even with last TC version). Some of those speeds are well under 100MB/s, it's not big problem even for HDD. But parallel reading would not help much (with HDD), because seeking would most likely kill the performance (possibly solvable by some buffering, but relatively hard). The best first step would be improving hashing speeds. Either by some better implementaion in TC or by using system functions where available. MD5 improved 2.5 times or SHA-1 improved 4 times would make quite a difference.
User avatar
hlloyge
Member
Member
Posts: 131
Joined: 2006-11-02, 23:14 UTC

Post by *hlloyge »

Well, to see what I am talking about, check out this program, http://www.exactfile.com/, and try to make sfv of, I don't know, 100 mp3 files. Or FLAC files.
Post Reply