[PATCH 5 of 5] check-code: use new function for compiling regexp patterns

Matt Mackall mpm at selenic.com
Wed Jun 12 16:04:12 CDT 2013


On Sat, 2013-06-08 at 20:57 +0200, Simon Heimberg wrote:
> # HG changeset patch
> # User Simon Heimberg <simohe at besonet.ch>
> # Date 1370715614 -7200
> # Node ID 6f047263d6db2ac50b79a69d9bbb3379ccaf63b3
> # Parent  e12f745ed2b4c38ac0acb2c8f7c2cebe3b130f3f
> check-code: use new function for compiling regexp patterns
> 
> This gives some speed gain when re2 is installed.

My test server happens to have re2 installed:

+      for m in p.finditer(post):
+  AttributeError: '_re2.RE2_Regexp' object has no attribute 'finditer'

I've queued the first four patches for default, thanks.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list