[File] [PATCH] Magdir/make: combine regex into single multi branch regex

Christos Zoulas christos at zoulas.com
Sat Mar 12 15:10:07 UTC 2022

Committed thanks!


> On Mar 12, 2022, at 5:01 AM, Dirk Müller <dirk at dmllr.de> wrote:
>> Why was this done the previous way?
> Okay, I see, the length of the regex determines strength ranking.
> Here's an updated patch that adjusts
> the strength to the previous level, and keeps the same detection
> quality. tested over 65000 files, no change to prior
> in detection, however ~ 20% better performance.
> Thanks,
> Dirk
> <0001-make-combine-regex-magics-into-single-with-multi-bra.patch>--
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP
URL: <https://mailman.astron.com/pipermail/file/attachments/20220312/ccae4dc3/attachment.asc>

More information about the File mailing list