Differences between revisions 1 and 2
Revision 1 as of 2010-03-05 16:08:29
Size: 327
Editor: 2001:638:807:20f:287c:da38:f4f4:cc1d
Comment:
Revision 2 as of 2010-03-05 16:11:44
Size: 419
Editor: 2001:638:807:20f:287c:da38:f4f4:cc1d
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
The largest part of the the 2to3 runtime is spent in the pattern matching algorithm. This currently uses a fairly naive back-tracking approach. Replacing it with an algorithm based on the computation of finite state machines out of the patterns should allow efficient simultaneous matching of patterns with many alternatives. The largest part of the the [[http://wiki.python.org/moin/2to3|2to3]] runtime is spent in the pattern matching algorithm. This currently uses a fairly naive back-tracking approach. Replacing it with an algorithm based on the computation of finite state machines out of the patterns should allow efficient simultaneous matching of patterns with many alternatives. Interested students should contact martin@v.loewis.de.

The largest part of the the 2to3 runtime is spent in the pattern matching algorithm. This currently uses a fairly naive back-tracking approach. Replacing it with an algorithm based on the computation of finite state machines out of the patterns should allow efficient simultaneous matching of patterns with many alternatives. Interested students should contact martin@v.loewis.de.

SpeedUp2to3PatternMatching (last edited 2010-03-05 16:11:44 by 2001:638:807:20f:287c:da38:f4f4:cc1d)

Unable to edit the page? See the FrontPage for instructions.