Opened 16 years ago
Closed 15 years ago
#16684 closed enhancement (fixed)
PHP5 Performance improvement for wptexturize
| Reported by: | solarissmoke | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.2 |
| Component: | Performance | Version: | 3.1 |
| Severity: | normal | Keywords: | php5 has-patch |
| Cc: | Focuses: |
Description
Now that we have ditched PHP4 we can do foreach() loops passing array elements by reference. Currently in wptexturize() we make a copy of each array element from $textarr and then write to a separate $output variable. In PHP5 this is unnecessary as we can work directly on the elements of $textarr.
I'm guessing this will need unit tests but it certainly should be more efficient.
Attachments (3)
Change History (9)
#2
@
16 years ago
- Version → 3.1
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Improved version.