Ticket #1299 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

convert re.sub to string.replace

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

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

Changed 5 years ago by szabolcs

  • status changed from new to closed
  • tt_spent set to 3.0h
  • resolution set to fixed
  • tt_remaining set to 0h

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

Note: See TracTickets for help on using tickets.