[Tickets #10396] Add caching to autoloader

bugs at horde.org bugs at horde.org
Fri Jul 29 16:53:07 UTC 2011


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/10396
------------------------------------------------------------------------------
  Ticket             | 10396
  Created By         | Jan Schneider <jan at horde.org>
  Summary            | Add caching to autoloader
  Queue              | Horde Framework Packages
  Version            | Git master
  Type               | Bug
  State              | Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


Jan Schneider <jan at horde.org> (2011-07-29 16:53) wrote:

For most page requests, loading all the PHP files through the  
autoloader is the most expensive operation now. The actual file  
loading can be improved by using a bytecode cache. Even more expensive  
is the class name to file path mapping though, especially the regular  
expressions.
The idea is to store this map directly, i.e. without using Horde_Cache  
for obvious reasons, in a cache. Since users interested in speeding up  
the file loading are using APC or similar anyway, the autoloader  
should use such a bytecode cache for caching the map too, if the  
extension supports arbitrary caching.






More information about the bugs mailing list