Thanks to Isotopp I discovered today that the load_plugin() method of the Plugin API did perform some unneccessary SQL queries when loading/searching for a plugin.
I have created this patch (can be applied to both 0.9 SVN and 0.8.1) - it will properly detect the plugin path setting and now only perform the SQL query when needed.
This should cut down one SQL query per plugin that is loaded; in a standard install with 14 plugins this is 14 less SQL queries. But thanks to MySQL and other caching systems, the impact of those superfluous small queries is not that large.
The patch will be part of a possible 0.8.2 release and has been committed to the CVS backport and SVN branches already.
(Update: Some more changes to the patch)
- Die wunderbare Welt von Isotopp am : S9Y Tuning