I've seen numerous references that calling require_once is slow. Zend
Framework is very strict about not calling require_once unless
absolutely necessary (e.g. for exceptions).

In item 3 in this blog post:

  http://till.vox.com/library/post/zendframework-performance.html

the author claims switching to __autoload chopped 220 ms off request times.

Why is this so? If you do not call require_once until you actually
need the class, I fail to see why __autoload would make any difference
as you still need to read the file from disk and interpret it either
way.

Mike

-- 
Michael B Allen
PHP Active Directory SPNEGO SSO
http://www.ioplex.com/
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to