Skip Menu |

This queue is for tickets about the File-Type CPAN distribution.

Report information
The Basics
Id: 8572
Status: new
Priority: 0/
Queue: File-Type

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.22
Fixed in: (no value)



Subject: File::Type::Builder improvements
Looking at the code generated by File::Type::Builder I think there is room for some performance improvements: * Use Regexp::Assemble to combine multiple magics into one regexp. The Regexp::Assemble also mentions some related modules which do a similar job. * Convert multiple belong and beshort magics into strings, so Regexp::Assemble may also be used here. * Sort the magics to have more common file formats on the top of the list, maybe based on real-world statistics like a web server's contents. Regards, Slaven