axiak / pyre2

Python wrapper for RE2
BSD 3-Clause "New" or "Revised" License
295 stars 39 forks source link

Allow threads when compiling large regexp #20

Closed socketpair closed 9 years ago

socketpair commented 10 years ago

use

with nogil
    ...

when compiling regexp

socketpair commented 10 years ago

Multithreading when matching covered here: http://code.google.com/p/re2/issues/detail?id=93

There is no bug in your code.

But compiling is not multithreaded because of your code.

axiak commented 9 years ago

Pushed to 0.2.22