High performance

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrea A

    High performance

    Hi all,
    I have a question:
    what do you think about performance (only performance not style,
    functionality, and so on) comparing PHP 4 and PHP 5.
    Which version is better if one want to develop a small website with a lot
    lot of page views (all pages are dynamic)?

    thks


  • petersprc

    #2
    Re: High performance

    Hi,

    In all likelihood you won't notice any difference in performance,
    though PHP5 is supposed to be faster in certain areas. I would suggest
    building your site, and then trying to optimize any bottlenecks such
    as database access. For instance, cutting down on unnecessary round-
    trips to the database, and perhaps using persistent connections. You
    can also cache certain portions of your site that don't have to be re-
    generated with every page view.




    On Feb 1, 3:38 pm, "Andrea A" <nos...@nospam. comwrote:
    Hi all,
    I have a question:
    what do you think about performance (only performance not style,
    functionality, and so on) comparing PHP 4 and PHP 5.
    Which version is better if one want to develop a small website with a lot
    lot of page views (all pages are dynamic)?
    >
    thks

    Comment

    • Andrea A

      #3
      Re: High performance

      "petersprc" <petersprc@gmai l.comwrote in message
      news:1170395042 .191168.318390@ v45g2000cwv.goo glegroups.com.. .
      can also cache certain portions of your site that don't have to be re-
      generated with every page view.
      Which is the best method to cache?

      What about memcached?

      thanks,
      a.


      Comment

      • Michael Fesser

        #4
        Re: High performance

        ..oO(petersprc)
        >In all likelihood you won't notice any difference in performance,
        >though PHP5 is supposed to be faster in certain areas. I would suggest
        >building your site, and then trying to optimize any bottlenecks such
        >as database access. For instance, cutting down on unnecessary round-
        >trips to the database, and perhaps using persistent connections.
        Depends on the server. Connecting to a MySQL server for example is
        pretty cheap, while persistent connections may cause you a lot of
        troubles. Don't do that unless you really need it and know what you're
        doing.

        Micha

        Comment

        • Michael Fesser

          #5
          Re: High performance

          ..oO(Andrea A)
          >what do you think about performance (only performance not style,
          >functionalit y, and so on) comparing PHP 4 and PHP 5.
          >Which version is better if one want to develop a small website with a lot
          >lot of page views (all pages are dynamic)?
          5.2 comes with an improved memory manager, which did speed up things
          here. Using a bytecode cache like APC might be worth a look as well.

          Micha

          Comment

          • petersprc

            #6
            Re: High performance

            One way is to use PEAR Cache:

            Now, next, and beyond: Tracking need-to-know trends at the intersection of business and technology

            can also cache certain portions of your site that don't have to be re-
            generated with every page view.
            >
            Which is the best method to cache?
            >
            What about memcached?

            Comment

            • Glenn

              #7
              Re: High performance

              On Fri, 02 Feb 2007 16:45:43 +0100, Michael Fesser <netizen@gmx.de >
              wrote:
              >.oO(peterspr c)
              >
              >>In all likelihood you won't notice any difference in performance,
              >>though PHP5 is supposed to be faster in certain areas. I would suggest
              >>building your site, and then trying to optimize any bottlenecks such
              >>as database access. For instance, cutting down on unnecessary round-
              >>trips to the database, and perhaps using persistent connections.
              >
              >Depends on the server. Connecting to a MySQL server for example is
              >pretty cheap, while persistent connections may cause you a lot of
              >troubles. Don't do that unless you really need it and know what you're
              >doing.
              >
              >Micha
              I think this might be a problem I'm having. I'm trying to monitor/tail
              some log files and perform queries to 1) insert the new data, 2)
              verify that the data is within certain constraints.

              I'm not closing the connections, I'm guessing this would be considered
              persistent (just to make sure I'm understanding--not a big DB guy)?
              I just didn't want to keep openning and closing connections.

              Each query is taking a full second to perform (is that normal? I have
              about 100k records at the moment).

              Plus, having an issue with only able to tail two files...?
              I'm using Apache server, PHP (ver4) driven pages, querying a MySQL DB.
              I can open two Internet Explorer windows and tail two files; but as
              soon as I try to open a 3rd, nothing happens until I get out of one of
              the others.

              Any idea to why I can only do 2 at a time?

              Thanks
              Glenn

              Comment

              Working...