Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Oct 2010 20:57:57 GMT
From:      edwin@FreeBSD.org
To:        peterjeremy@acm.org, edwin@FreeBSD.org, freebsd-bugs@FreeBSD.org, obrien@FreeBSD.org
Subject:   Re: bin/148150: Poor file(1) performance
Message-ID:  <201010212057.o9LKvvKB020896@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
Synopsis: Poor file(1) performance

State-Changed-From-To: open->analyzed
State-Changed-By: edwin
State-Changed-When: Thu Oct 21 20:53:01 UTC 2010
State-Changed-Why: 
The best patch so far without loosing features would be:

-100    regex/c =^[\ \t]{0,10}call[\ \t]{1,10}rxfunc OS/2 REXX batch file text
-100    regex/c =^[\ \t]{0,10}say\ ['"]      OS/2 REXX batch file text
+100     regex/c =^[\ \t]+call[\ \t]+rxfunc OS/2 REXX batch file text
+100     regex/c =^[\ \t]+say\ ['"]           OS/2 REXX batch file text

which reduces the worst-case time from 1900 ms to 450 ms, full
removal would reduce it back to 170 ms. Worst case scenario is the
file aclocal.m4 in the contrib/file directory.



Responsible-Changed-From-To: freebsd-bugs->obrien
Responsible-Changed-By: edwin
Responsible-Changed-When: Thu Oct 21 20:53:01 UTC 2010
Responsible-Changed-Why: 
obrien@ wants to pre-approve changes or do them himself.

obrien@: Let me know if I can commit this one!

http://www.freebsd.org/cgi/query-pr.cgi?pr=148150



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010212057.o9LKvvKB020896>