bin/148150: Poor file(1) performance

Peter Jeremy peterjeremy at acm.org
Sat Jun 26 02:50:09 UTC 2010


The following reply was made to PR bin/148150; it has been noted by GNATS.

From: Peter Jeremy <peterjeremy at acm.org>
To: Garrett Cooper <yanefbsd at gmail.com>
Cc: FreeBSD-gnats-submit at freebsd.org
Subject: Re: bin/148150: Poor file(1) performance
Date: Sat, 26 Jun 2010 12:43:58 +1000

 --d6Gm4EdcadzBjdND
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On 2010-Jun-25 17:54:37 -0700, Garrett Cooper <yanefbsd at gmail.com> wrote:
 >FWIW I think that this is more indicative of poor regexp(3)
 >performance or possibly tighter constraints placed on the regexp
 >compiler / parser to do the act of parsing the string.
 
 There are several other regexp's that don't have the same impact.  My
 suspicion is that at least some of the problem is the 100 line offset.
 My feeling is that moving the existing regexp down a level and
 wrapping it with a more efficient test that selects potential REXX
 files might be the optimal solution but I don't know either REXX or
 magic(5) well enough to suggest one.
 
 --=20
 Peter Jeremy
 
 --d6Gm4EdcadzBjdND
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.14 (FreeBSD)
 
 iEYEARECAAYFAkwlaW0ACgkQ/opHv/APuIe9BACgh4vcx4eyZWK/tFLNqHNNvQ5d
 syIAnAhvs+z5WaYOI9r6SvXVgIuabpPo
 =iSLZ
 -----END PGP SIGNATURE-----
 
 --d6Gm4EdcadzBjdND--


More information about the freebsd-bugs mailing list