issue2636-09-01 : Code : Python (original) (raw)

lp:~pythonregexp2.7/python/issue2636-09-01

Created byTimeHorse on 2008-05-01 and last modifiedon 2008-09-24

This is the first attempt at cleaning up the C-code for the Python Regexp Engine by turning Macros into proper Functions and all switch-case statements into lookup tables containing function pointers. Near the finish of this attempt at firstly understanding how the current Python Regex Engine functioned and secondly seeing if I could make it faster, I benchmarked it against the original Python Regex engine and found it to be between 8 3/4% to 9% slower, so I have branched it out from the main Comment and Analysis branch so that if a solution to the 9% problem can be found, development can continue, but otherwise not affect the main Comment and Analysis branch. However, the comments added to this branch will be manually added to the main Regex Engine branch at a later date because the original code is rather hard to understand which is why this line of development was attempted.

Get this branch:

bzr branchlp:~pythonregexp2.7/python/issue2636-09-01

Branch merges

Branch information

Recent revisions

39088. ByJeffrey C. "The TimeHorse" Jacobs on 2008-09-21

39087. ByJeffrey C. "The TimeHorse" Jacobs on 2008-06-18

39086. ByJeffrey C. "The TimeHorse" Jacobs on 2008-06-15

39085. ByJeffrey C. "The TimeHorse" Jacobs on 2008-06-11

39084. ByJeffrey C. "The TimeHorse" Jacobs on 2008-06-11

39083. ByJeffrey C. "The TimeHorse" Jacobs on 2008-06-11

39082. ByJeffrey C. "The TimeHorse" Jacobs on 2008-06-10

39081. ByJeffrey C. "The TimeHorse" Jacobs on 2008-06-10

39080. ByJeffrey C. "The TimeHorse" Jacobs on 2008-06-10

39079. ByJeffrey C. "The TimeHorse" Jacobs on 2008-06-09

Branch metadata

Branch format:

Branch format 6

Repository format:

Bazaar pack repository format 1 with rich root (needs bzr 1.0)