Trigon
Joined: 04 Jul 2007 |
Posts: 0 |
|
|
 |
Posted: Fri Jul 27, 2007 12:18 am |
|
 |
 |
 |
 |
I Just had an idea, you know how clamWin scans only one file at a time, would it be faster if it scanned multiple files at the same time? eg say break it up into say 3 to 4 scans running at the same, each scanning a different file.
E.g.
Normal scan
Files: 1 2 3 4 5 6 7 8 9 10
Scans: 1 2 3 4 5 6 7 8 9 10
My idea
Files: 1 2 3 4 5 6 7 8 9 10
Scan1: 1 2 3
Scan2: 4 5 6
Scan3: 7 8 9
Scan4: 10
All running at the same time.
Would this be faster?
|
|
sherpya
Joined: 22 Mar 2006 |
Posts: 0 |
Location: Italy |
|
 |
Posted: Fri Jul 27, 2007 12:53 am |
|
 |
 |
 |
 |
uh? you mean multi threaded? unfortunately clamscan it's a single threaded application
|
|
Trigon
Joined: 04 Jul 2007 |
Posts: 0 |
|
|
 |
Posted: Fri Jul 27, 2007 1:09 am |
|
 |
 |
 |
 |
I don't mean multi threaded, how can i explain this.
when ClamWin scans it scans one file at a time, eg c:\files\file1.exe | then c:\files\file2.exe c:\files\file3.exe and so on. Say this takes 10 seconds.
What i am asking is would it be faster to do multiple cans at one time eg.
Start scan
c:\files\file1.exe
c:\files\file2.exe
c:\files\file3.exe
And it scans all 3 files all at once, So instead of cheeking one files at a time it cheeks 3 at a time.
See what i mean?
Just say you have a box of apples, and you cheek one apple at a time to see if there is a worm on it, now if you where able to look at 3 apples at a time(and taking the same time to look at 1) you would be able to sort all the apples faster.
|
|
alch
Site Admin
Joined: 27 Nov 2005 |
Posts: 0 |
|
|
 |
Posted: Fri Jul 27, 2007 3:10 am |
|
 |
 |
 |
 |
it won't be any faster. bottleneck in clamav is IO rather than CPU
|
|