[wp-trac] [WordPress Trac] #31950: Reduce PHP memory usage / No unnecessary concatenation
WordPress Trac
noreply at wordpress.org
Fri Jul 3 02:00:01 UTC 2015
#31950: Reduce PHP memory usage / No unnecessary concatenation
-----------------------------------------+--------------------------
Reporter: jrf | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: General | Version:
Severity: normal | Resolution: wontfix
Keywords: has-patch 2nd-opinion close | Focuses: performance
-----------------------------------------+--------------------------
Comment (by jrf):
There seems to be some confusion: this PR was not about performance in the
sense of *speed*, but about performance in the sense of *memory use*.
Every concatenation will **exponentially** usurp memory, especially when
used in an echo statement where there is a perfectly good alternative or
rather, a much advocated best practice, as even the PHP manual will tell
you.
While I realize that people who are not so well versed in PHP may not be
as familiar with using comma's in echo statements, that doesn't take away
from the original premise.
And while there have been lots of improvements in PHP7, this has not
changed.
Anyways, as I said in the first line 'was'. I bow to your wisdom.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31950#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list