[wp-trac] Re: [WordPress Trac] #7372: Plugin update check running
on each pageload is slow
WordPress Trac
wp-trac at lists.automattic.com
Tue Jul 22 15:40:50 GMT 2008
#7372: Plugin update check running on each pageload is slow
--------------------------------------+-------------------------------------
Reporter: DD32 | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: Administration | Version: 2.6
Severity: normal | Resolution:
Keywords: needs-patch dev-feedback |
--------------------------------------+-------------------------------------
Comment (by santosj):
The algorithm needs to be revisited. I had worried that performance might
actually be affected. Also, it appears memory will also be an issue, if
the required fields are not found then it will just continue until the
file is completely loaded or the fields are found.
These are not what the solution called for. I'm unaware how to handle it
so that if comments aren't found in the plugin to just back out and fail
to continue reading the file.
It could be faster if the code was combined into a single function, there
is some overhead in creating the stack, which is not required. That might
shave off 1 or 2 ms.
Need some way to halt reading certain files that either don't have
comments or don't have plugin data. It also needs to make sure that all of
the plugin data is pulled in.
--
Ticket URL: <http://trac.wordpress.org/ticket/7372#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list