[PATCH] replace call to file(1) with libmagic

Markus Benning ich at markusbenning.de
Tue Jul 22 10:28:08 CEST 2014


Hello Mark,

i did some research on optimizing Amavis/Spamassassin in our test setup
with NYTProf.
I found that replacing the call to the external file(1) tool with
calls to File::LibMagic increased the throughput from 4.1 to 4.8 msg/s.
It also simplifies the code in determine_file_types().

 Markus


-------------- next part --------------
A non-text attachment was scrubbed...
Name: amavisd-libmagic.patch
Type: text/x-diff
Size: 5480 bytes
Desc: not available
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20140722/3e4f51e5/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20140722/3e4f51e5/attachment.sig>


More information about the amavis-users mailing list