Date: 10/27/99
- Next message: xendra: "Re: [PHPLIB-DEV] PHPLIB-7.2 released"
- Previous message: Teodor Cimpoesu: "[PHPLIB-DEV] changes to session.inc - coming back"
- In reply to: serghej petrov: "[PHPLIB-DEV] Memory or code/seesion problem?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
serghej petrov wrote:
> BUT this same code with phplib 7.2 with about 30 articles work
> very slow and with more 50 articles don't work at all:
You are registering very many variables with the session
management with your code. That will put a lot of load on the
page_close() function, which calls serialize() and that in turn
will be quite slow.
I suggest that you change your approach and select a random
number from new articles, then grab only that article from the
database. That will be much faster.
Kristian
-- Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00 Using PHP3? See our web development library at http://phplib.netuse.de/ (We have moved! Update your bookmarks!) - PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>. To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in the body, not the subject, of your message.
- Next message: xendra: "Re: [PHPLIB-DEV] PHPLIB-7.2 released"
- Previous message: Teodor Cimpoesu: "[PHPLIB-DEV] changes to session.inc - coming back"
- In reply to: serghej petrov: "[PHPLIB-DEV] Memory or code/seesion problem?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

