Ticket #5320 (closed defect (bug): fixed)

Opened 4 years ago

Last modified 4 years ago

Improve performance of seems_utf8() and uf8_uri_encode()

Reported by: ryan Owned by: anonymous
Priority: normal Milestone: 2.5
Component: General Version:
Severity: normal Keywords: performance
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

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

Change History

ryan4 years ago

comment:1   ryan4 years ago

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

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

Note: See TracTickets for help on using tickets.