PHP5 Performance improvement for wptexturize
|Reported by:||solarissmoke||Owned by:|
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.
Change History (9)
6 years ago
- Component changed from General to Performance
- Type changed from defect (bug) to enhancement