Speeding up PHP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Juicy D. Links
    So Fucking Banned
    • Apr 2001
    • 122992

    #1

    Speeding up PHP

    ANybodu use this?

    http://www.php-accelerator.co.uk/
  • dnsmonster
    Confirmed User
    • Jul 2002
    • 634

    #2
    I've used it. IMHO it's not worth the trouble. I do use

    APC Cache though, it seems to be more reliable.

    If you really want to speed up your PHP scripts use JP Cache when possible. It did magic on my gallery script(s).
    I couldn't possibly know what I'm talking about, I'm completely, absolutely and definitively out of my fucking mind.

    Comment

    • jennycards
      Confirmed User
      • Feb 2002
      • 1124

      #3
      I am using it on my website which is 100% PHP & mysql. It helped A LOT bringing down my server's load. Very easy to install, no negative side effects ... and it's free too :-))
      Make Money with true niche programs like Adult ECards - Pantyhose Fetish - Men in Pantyhose

      Comment

      • kad
        Confirmed User
        • Feb 2003
        • 735

        #4
        IMHO dont bother with them. They will give you a 3-5% increase in speed, but thats about it. It doesn't make for a very scalable system. Look at which part of the script is slow and improve it.

        Using a cacher or optimiser is sort of 'cheating' and is only a short term solution.
        lol internet.

        Comment

        • Trafficbrokercom
          Confirmed User
          • Dec 2002
          • 542

          #5
          Originally posted by kad
          IMHO dont bother with them. They will give you a 3-5% increase in speed, but thats about it. It doesn't make for a very scalable system. Look at which part of the script is slow and improve it.

          Using a cacher or optimiser is sort of 'cheating' and is only a short term solution.

          Sorry,

          but this is absolutely not true.

          I don't know how many hits you have but if you have a lot you will see a significant increase. I am running 500,000 database intense hits per day on one machine with php accelerator and no worries at a load of 0.2 - 0.4 .. ( 1 gig of ram and dual 1ghz cpu) ..

          You can significantly speed up your sites if you use the new Smarty template engine http://smarty.php.net in combination with php accelerator.

          Plus, use the caching function of Mysql 4.x and you save a lot of money as you don't need additional hardware to scale your traffic.

          How do you define 'cheating' in relation to a cacher?

          Greetings

          Mike

          Comment

          • senseidru
            Confirmed User
            • Sep 2002
            • 1767

            #6
            I'm gonna give one of these a go, the php system for my perclick program is gonna need to be optimized (I'm reprogramming it right now).

            Comment

            • kad
              Confirmed User
              • Feb 2003
              • 735

              #7
              Originally posted by Trafficbrokercom



              Sorry,

              but this is absolutely not true.

              I don't know how many hits you have but if you have a lot you will see a significant increase. I am running 500,000 database intense hits per day on one machine with php accelerator and no worries at a load of 0.2 - 0.4 .. ( 1 gig of ram and dual 1ghz cpu) ..

              You can significantly speed up your sites if you use the new Smarty template engine http://smarty.php.net in combination with php accelerator.

              Plus, use the caching function of Mysql 4.x and you save a lot of money as you don't need additional hardware to scale your traffic.

              How do you define 'cheating' in relation to a cacher?

              Greetings

              Mike
              Let me preface my comments by stating that I designed and co-wrote http://www.darkblue.com. This system serves out more than 100 million impressions a day (and counts them ofcourse), as well as tracking clicks, leads and sales. It reports statistics to both advertisers and its thousands of affiliates in real time.

              It uses PHP 4 and MySQL without ANY middleware caching. It does use one C program, but that is only due to PHP's poor memory management when handling large volumes of data.

              PHPA only does one thing, and that is stores a cached copy of the php script in memory, so that each time it is called, it doesnt need to recompile it again. This is a good feature to have around, but belive me, 95% of the time, waiting for PHP to compile the script is the least of peoples worries. Most of the time (depending on hardware) it takes the OS longer to seek the file and read it than it does PHP to compile it.

              That said, please dont mis-interpret what im saying about 'cheating'. Im saying putting PHPA on when the box starts maxing out is the EASY way out. Fuck timing your scripts to see where the slow down is, lets just install PHPA and forget about it.

              PHP in most cases is ultra fast. It is only slow when you do dumb things. Most of these things aren't even PHP's fault (reading and writing to files / large databases). If your box is running at a high load, putting Zend Optimizer or PHPA on it should be the last thing you do.

              As with everything, this is just my take on things. I want my code to be uber-fast on everybox that has PHP.
              lol internet.

              Comment

              • roly
                Confirmed User
                • Aug 2002
                • 1844

                #8
                Originally posted by juicylinks
                ANybodu use this?

                http://www.php-accelerator.co.uk/
                i'm no expert but i use it and seems ok, there's also zend optimizer which may be worth looking at, you can't install both though. And mod_gzip is worth installing too.

                Comment

                Working...