[wp-trac] [WordPress Trac] #10125: Code optimisations for timezone
dropdown builder.
WordPress Trac
wp-trac at lists.automattic.com
Fri Jun 12 16:11:46 GMT 2009
#10125: Code optimisations for timezone dropdown builder.
--------------------------+-------------------------------------------------
Reporter: sambauers | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: 2.8.1
Component: Date/Time | Version: 2.8
Severity: normal | Keywords: timezones
--------------------------+-------------------------------------------------
The new timezone dropdown builds noticeably slowly in 2.8 causing lag when
opening the general options page in admin.
The main problem was with inefficient use of translate functions within
the usort callback.
Secondarily, the loop which builds the actual options html was using a
string concatenation method which pulls and pushes the same variable in
and out of memory hundreds of times.
The following patch fixes both of these problems and generally tidies
things up. Performance is improved noticeably.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10125>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list