Ticket #1299 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

convert re.sub to string.replace

Reported by: szabolcs Owned by: szabolcs
Priority: minor Milestone:
Component: generic Version:
Keywords: Cc:
Time planned: 2h Time remaining: 0h
Time spent: 3.0h

Description

re.sub is much slower than string.replace and most of them can be replaced (no regex in the pattern, only simple strings)

the same for re.search -> string.find

Change History

comment:1 Changed 13 years ago by szabolcs

  • Status changed from new to closed
  • Time spent set to 3.0h
  • Resolution set to fixed
  • Time remaining set to 0h

(In [1624]) fixed #1299 spent 3h

Note: See TracTickets for help on using tickets.