Make WordPress Core

Opened 18 years ago

Closed 18 years ago

#5320 closed defect (bug) (fixed)

Improve performance of seems_utf8() and uf8_uri_encode()

Reported by: ryan's profile ryan Owned by:
Milestone: 2.5 Priority: normal
Severity: normal Version:
Component: General Keywords: performance
Focuses: Cc:

Description

seems_utf8() and uf8_uri_encode() call strlen() several times within loops. strlen() only needs to be called once and its result assigned to a variable that is tested within the loops.

Attachments (1)

strlen.diff (2.0 KB) - added by ryan 18 years ago.

Download all attachments as: .zip

Change History (2)

@ryan
18 years ago

#1 @ryan
18 years ago

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

(In [6314]) Improve performance of seems_utf8() and uf8_uri_encode(). fixes #5320

Note: See TracTickets for help on using tickets.