Fedora's PHP binary pretty slow for CGI

From: David Garamond (lists_at_zara.6.isreserved.com)
Date: 05/31/04

  • Next message: Tony Perrie: "Re: Booting from 120 GB USB External Hard Drive"
    Date: Tue, 01 Jun 2004 00:54:25 +0700
    To: fedora-list@redhat.com
    
    

    I am still running RH73 with PHP packages from Troels Arvin:

      http://rpms.troels.arvin.dk/

    The packages are now unmaintained and they are stuck at PHP 4.2.2. Today
    I thought I'd try building FC2's PHP on RH73. Not exactly a
    straightforward process, but after tweaking the spec file a bit and
    upgrading some libraries it managed to build.

    I see that the PHP binary produced by Fedora's package is relatively fat
    (+- 3MB in size, with most PHP extensions built into the binary). In
    contrast, Troels' PHP binary is much more slim (+- 1MB in size, most PHP
    extensions is separated).

    The problem is, Fedora's PHP binary adds a big overhead when being used
    in CGI application. Just running "php -q" would take +- 0.14 sec. on my
    system, where Troels' binary only takes +- 0.017s. Most of the overhead
    is due to loading the many shared libraries.

    Perhaps it can be slimmed down a bit? 0.14s overhead is too much I
    think. In comparison, "perl -v" only took 0.015s and "ruby -v" took 0.017s.

    -- 
    dave
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Tony Perrie: "Re: Booting from 120 GB USB External Hard Drive"

    Relevant Pages