2 questions about performance...

From: Date: Tue, 06 Mar 2001 23:37:38 +0000
Subject: 2 questions about performance...
Groups: php.general 
Request: Send a blank email to php-general+get-42825@lists.php.net to get a copy of this message
Is it in-efficient to use shuffle()? I have a simple 6 element array with 6 strings (URLs to images) and I'm using shuffle() to display all of them in random order upon each page load. The images take a long time (of course is relative, it's mere seconds) but when I remove the call to shuffle, they appear much much faster... Also, is there an efficient number or limit of queries one should call in a singular PHP page? On average, I'll make 7-10 seperate queries to display a page (a graphics related portal and content management system)... I have a singular database connection (with mysql_pconnect()) and use that same connection throughout the script. Sometimes it appears to load quickly, than other times it doesn't, and I'm afraid that as more and more content get put into the databases, the slower it will perform. user authentication navigation (link definitions) form dropdowns (dynamic selects) banner rotation (2 sets, big and small) activity tracker headline or story retrieval comments Joseph E. Sheble a.k.a. Wizaerd Wizaerd's Realm Canvas, 3D, Graphics, ColdFusion, PHP, and mySQL http://www.wizaerd.com =================================

« previous php.general (#42825) next »