以下Python代码需要很长时间才能完成(在我的MacBook Pro上超过5分钟)。我做了什么来伤害我的正则表达式的表现吗?
import re
test = re.compile(r'< *(?:\w+ *\*? *,? *)+>')
print test.findall('if ((XXXXXXXXXXXXXXXXXXXXXXXXXXX >= XXXXXXXXXXXXXXXXXXXXXXXXXXXXX) && (XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX < XXXXXXXXXXXXXXXXXXXXXXXXXXXXX + XXXXXXXXXXXXXXXXXXXXXXXXXXXXX)) {')