Re: [clamav-users] Scan for dummy file with /dev/zero takes longer

2019-07-16 Thread Andrew Williams
Taizo, The reason for the difference is that there are a lot of subsignatures used in the published set of logical signatures that begin with some number of zeroes (more so than the majority of random byte sequences), so the ClamAV pattern matcher has to do a lot more work on the all-zeroes file d

[clamav-users] Scan for dummy file with /dev/zero takes longer

2019-07-09 Thread Taizo ITO
Hello, I'm trying to get some stats on how long a scan takes by different size, but I encountered an unexpected behavior when scanning a file generated in a specific way. A scan for a dummy file filled with /dev/zero takes much longer than with /dev/urandom. I think the processing time should be t