Ticket #3201 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

convert_smilies optimization

Reported by: Nazgul Owned by: anonymous
Priority: normal Milestone: 2.1
Component: Administration Version: 2.1
Severity: normal Keywords: has-patch
Cc:

Description

Now that smilies are built using a regex, it is possible for us to optimize convert_smilies.

It splits and loops through all content passed to it, calling a regex on each line. The attached patch replaces that loop with a single regex.

Attachments

3201.diff Download (1.5 KB) - added by Nazgul 5 years ago.

Change History

Nazgul5 years ago

Present patch also fixes #3216.

comment:2   ryan5 years ago

  • Status changed from new to closed
  • Resolution set to fixed

(In [4360]) Smilies optimization from Nazgul. fixes #3201 #3216

Note: See TracTickets for help on using tickets.