tacker.org


__autoload vs. require_once

6.12.2006

Yesterday I read in Lukas Blog that __autoload is bad for bytecode caches. As I am currently in the optimizing phase of a project I gave it try.

I used __autoload for everything until now. I then removed __autoload and added the “old style” require_once calls.

I testet the app by fetching the start page 100 times on a freshly started apache 2.2 with mod_php 5.2.0 and apc 3.0.12.

The speed increase was about 4%.

For me the speed gain does not legitimate the loss in code quality.

6
12
2006

Ein Kommentar hinzufügen | Permalink

Kategorien > Allgemeines

Tags >

Lesezeichen > Als Lesezeichen bei Digg abspeichern Als Lesezeichen bei del.icio.us abspeichern Als Lesezeichen bei MisterWong abspeichern Als Lesezeichen bei Technorati abspeichern

 

nächster > Abriss der Dachinnenverkleidung

voriger > Ihre Bestellung vom 17.11.2006

Dein Kommentar





Markus TackerÜber

Markus Tacker ist professioneller Webentwickler aus Offenbach am Main, Deutschland.

Der Schwerpunkt seiner Tätigkeiten ist die Entwicklung von browserbasierten Anwendungen in PHP.

Kontakt

Markus Tacker
Senefelderstr. 63
63069 Offenbach
(0 69) 83 83 57 73
(0 32 21) 1 14 32 97

mehr

http://m.tacker.org/blog/599.__autoload-vs-require_once.html