WordPress.org

Ready to get started?Download WordPress

Ideas

Use PHP's spl_autoload to only load the necessary wordpress classes

  1. tobiasbeuving
    Member

    12345

    Like Ketwaroo suggests in the thread - http://wordpress.org/support/topic/use-spl_autoload-to-load-classes?replies=1

    Use PHP's spl_autoload to only load the classes that are really needed at that moment.
    Requires renaming of some files, but stimulates file naming consistency.

    Tutorial: http://www.phpro.org/tutorials/SPL-Autoload.html

    Posted: 2 years ago #
  2. Nicolas Chevallier
    Member

    12345

    I agree with tobias, we need to load just needed libraries and classes and not all the engine in order to speed up responses.

    Posted: 2 years ago #
  3. Alan Delval
    Member

    12345

    If something needs to be improved is the speed.

    Posted: 1 year ago #
  4. I agree, wordpress is a very good CMS but it is still slow for websites with huges databases !

    Posted: 1 year ago #
  5. Ipstenu (Mika Epstein)
    Half-Elf Support Rogue & Mod

    Tell that to WP.com :)

    Their DB is probably bigger than all of ours combined.

    Posted: 1 year ago #
  6. Yes but how many bays of servers have they? hum?

    Posted: 1 year ago #
  7. Web developer
    Member

    12345

    Will be this feature change the page download speed? I dont think so.

    Posted: 1 year ago #
  8. jamoore123
    Member

    Agreed. There are better and more effective ways to improve page download speed. This wouldn't make much of a difference.

    Posted: 1 year ago #
  9. deepwater wells
    Member

    Have tested this with ~3/4 of classes in wp-includes. Absolutely no difference in speed

    Posted: 8 months ago #
  10. tobiasbeuving
    Member

    12345

    Thanks for posting your findings Deepwater Wells!

    I implemented it and haven't upgraded wp since because it will break my whole site.

    Also - even if WP would use autoload, the spl_autoload causes problems with plugins so...

    I'll switch back to conventional classloading asap

    So in conclusion, let's NOT use spl_autoload

    Cheers,
    T

    Posted: 8 months ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    19 Votes
  • Status

    This idea is under consideration