On Friday 18 October 2013 12:46:18 Neil Cahill wrote:
> I profiled an execution of "emerge -pv sed" to look for easy ways to
> increase the speed of that command.  The following 2-line patch gives a 2%
> reduced run time.  The profile showed that regex matching accounts for
> 8.3% of the run time, so these updated regular expressions are at least
> 25% quicker.  I hoped it would help more but it should all add up.
> 
> As I get more time I may look to submit other small improvements.
> 
> As for how the patch works, the version number part of a package name has
> many options so that part of the regular expression is time consuming.  It
> was advantageous to use an assertion to visit that part of the expression
> less often.  Python since 2.4 supports what I've used so this should work
> on all current versions.

please send patches to [email protected]

also, please do not use HTML
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to