Make WordPress Core

Opened 18 years ago

Closed 18 years ago

#3201 closed enhancement (fixed)

convert_smilies optimization

Reported by: nazgul's profile Nazgul Owned by:
Milestone: 2.1 Priority: normal
Severity: normal Version: 2.1
Component: Administration Keywords: has-patch
Focuses: 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 (1)

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

Download all attachments as: .zip

Change History (3)

@Nazgul
18 years ago

#1 @Nazgul
18 years ago

Present patch also fixes #3216.

#2 @ryan
18 years ago

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

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

Note: See TracTickets for help on using tickets.