Ticket #5320 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Improve performance of seems_utf8() and uf8_uri_encode()

Reported by: ryan Assigned to: 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 (2.0 kB) - added by ryan on 11/05/07 08:12:36.

Change History

11/05/07 08:12:36 changed by ryan

  • attachment strlen.diff added.

11/05/07 17:13:43 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

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