Date: Sat, 26 Jun 2010 02:50:09 GMT From: Peter Jeremy <peterjeremy@acm.org> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/148150: Poor file(1) performance Message-ID: <201006260250.o5Q2o95A083389@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/148150; it has been noted by GNATS. From: Peter Jeremy <peterjeremy@acm.org> To: Garrett Cooper <yanefbsd@gmail.com> Cc: FreeBSD-gnats-submit@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@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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006260250.o5Q2o95A083389>