Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3788210
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:57:46+00:00 2026-05-19T11:57:46+00:00

I am trying to find a definite answer to the question that autoload kills

  • 0

I am trying to find a definite answer to the question that autoload kills performance when using APC and why(benchmarks?)

P.S. Found this link using google/stackoverflow, but I am wondering if this still holds? PHP must been improved to handle this? Because autoload is kind of cool!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T11:57:47+00:00Added an answer on May 19, 2026 at 11:57 am

    Personally, I don’t believe relying on __autoload() is good practice. PHP is a loosely typed language, not a lazily typed language. 🙂

    Check out some performance here:

    • http://weierophinney.net/matthew/archives/245-Autoloading-Benchmarks.html
    • http://www.ilia.ws/files/zend_performance.pdf

    Rasmus’s answer on this (which you also found) was my guidline through all this years:

    <arnaud_> does autoload have a performance impact when using apc ?
    <Rasmus_> it is slow both with and without apc
    <Rasmus_> but yes, moreso with apc because anything that is autoloaded is pushed down into the executor
    <Rasmus_> so nothing can be cached
    <Rasmus_> the script itself is cached of course, but no functions or classes
    <Rasmus_> Well, there is no way around that
    <Rasmus_> autoload is runtime dependent
    <Rasmus_> we have no idea if any autoloaded class should be loaded until the script is executed
    <Rasmus_> top-level clean deps would speed things up a lot
    <Rasmus_> it's not just autoload
    <Rasmus_> it is any sort of class or function declaration that depends on some runtime context
    <Rasmus_> if(cond) function foo...
    <Rasmus_> if(cond) include file
    <Rasmus_> where file has functions and classes 
    <Rasmus_> or heaven forbid: function foo() { class bar { } }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to find an example that has css rollover using sprites & sliding door
Im trying to find a regular expression that matches this kind of URL: http://sub.domain.com/selector/F/13/K/100546/sampletext/654654/K/sampletext_sampletext.html
trying to find an example of this, it's possible that I am not going
Trying to find a straight answer for this. I am going to be creating
Trying to find some simple SQL Server PIVOT examples. Most of the examples that
Im trying to find out a good JavaScript library that can create a nice
Trying to find div element with id=result in returned data from .ajax() using .find()
I'm trying find a way to have PHP to indicate to the browser that
Trying to find some information on this but am unable to get any results
I am trying find lat & long from user given address, for that i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.