cdarras / clamav-client

Java client library for the ClamAV antivirus daemon
MIT License
79 stars 24 forks source link

Make stream scanning chunk size parametrizable #28

Closed igorlovich closed 10 months ago

igorlovich commented 10 months ago

Currently the chunk size is fixed at 2048 bytes. For scanning large files this creates quite a bit of overhead (on our infrastructure e.g. a 70Mb file takes ~50 sec to scan with the default chunk size, where as with a 1Mb chunk size it takes about 15 sec.) Would a PR that makes this value parametrizable (with default left as is at 2048) be accepted ?

cdarras commented 10 months ago

Yes, sure!

igorlovich commented 10 months ago

@cdarras when do you think you'll be able to take a look at the PR ?

cdarras commented 10 months ago

@igorlovich done :)

igorlovich commented 10 months ago

thanks. @cdarras are you going to publish a release to maven ?