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