[PHP] Re: Performance of PHP

2007-11-06 Thread Colin Guthrie
Merlin wrote: Hi there, I am doing some image cropping of about 40.000 files with php. To do this I wrote a PHP file that does what I want and I did disable the timeout so I can call it via webbrowser and fire the script. There are two down sides I see: 1. One image takes about 0.25 s,

[PHP] Re: performance down

2007-04-24 Thread Colin Guthrie
Jochem Maas wrote: sorry OP I can't comment on the degradation your seeing, but I'm interested if anyone can - in the mean time you might consider downgrading apache and measuring the difference and subsequently upgrading apache whilst downgrading php and measuring the difference also - it

[PHP] Re: Performance question

2006-02-01 Thread Barry
Mathieu Dumoulin wrote: This is more a How would you do it than a How can i do it question. Didn't have time to try it, but i want to know how mysql_seek_row acts with large result sets. For example im thinking of building a node tree application that can have dual direction links to nodes

[PHP] Re: Performance question

2006-02-01 Thread Mathieu Dumoulin
Thx, but that wouldn't work since i can have dual direction nodes and further something i didnt say is that a node may be used infinite number of times in the tree... so it isn't really valid to use joins in that case :( thx anyway Barry wrote: Mathieu Dumoulin wrote: This is more a How

[PHP] Re: Performance Comments Question

2006-01-19 Thread Barry
Rodolfo Andrade wrote: Hi all! I would like to know if comments in the code affects the performance. I know that comments are ignored by the interpreter, but it does increase the file size, so I was thinking about a possible performance hit for highly commented files. Can anyone confirm this?

Re: [PHP] Re: Performance Comments Question

2006-01-19 Thread Jochem Maas
Barry wrote: Rodolfo Andrade wrote: Hi all! I would like to know if comments in the code affects the performance. I know that comments are ignored by the interpreter, but it does increase the file size, so I was thinking about a possible performance hit for highly commented files. Can

Re: [PHP] Re: Performance Comments Question

2006-01-19 Thread Austin Denyer
On Thu, 19 Jan 2006 14:09:00 +0100 Jochem Maas [EMAIL PROTECTED] wrote: in real life you won't notice the overhead at all. and people will love you if you'r files are 90% comments :-) I've never been quite that liberal with my comments, but I do have a few files that are 50% comments...

Re: [PHP] Re: Performance Comments Question

2006-01-19 Thread Jochem Maas
Austin Denyer wrote: On Thu, 19 Jan 2006 14:09:00 +0100 Jochem Maas [EMAIL PROTECTED] wrote: in real life you won't notice the overhead at all. and people will love you if you'r files are 90% comments :-) I've never been quite that liberal with my comments, but I do have a few files that

Re: [PHP] Re: Performance Comments Question

2006-01-19 Thread Richard Lynch
On Thu, January 19, 2006 7:09 am, Jochem Maas wrote: Barry wrote: Rodolfo Andrade wrote: and people will love you if you'r files are 90% comments :-) Actually, the times I've seen THAT much commenting, it was generally a lot of useless noise and I hated it... Consider this common practice:

[PHP] Re: Performance question

2005-12-05 Thread James Benson
I dont think either will give a performance decrease any less than the other will do. Anders Norrbring wrote: I've been spending some time to find performance pros and cons, but so far haven't had any real luck. Can someone on this list say which is better than the other, and also

[PHP] R: [PHP] Re: Performance question

2005-12-05 Thread Sebastian \En3pY\ Zdrojewski
gentilmente comunicazione. Ogni utilizzo improprio è contrario ai principi del D.lgs 196/03 e alla legislazione Europea (Direttiva 2002/58/CE). -Messaggio originale- Da: James Benson [mailto:[EMAIL PROTECTED] Inviato: lunedì 5 dicembre 2005 13.40 A: php-general@lists.php.net Oggetto: [PHP] Re

[PHP] Re: performance.

2005-07-26 Thread Matthew Weier O'Phinney
* Rodolfo Gonzalez Gonzalez [EMAIL PROTECTED]: this could be a silly question. Is there some performance penalty when using the operator like this: $var =EOP add a bunch of text here and here EOP; Just curious. Try doing some benchmarks using microtime(). My gut reaction is that there

Re: [PHP] Re: performance.

2005-07-26 Thread Rodolfo Gonzalez Gonzalez
On Tue, 26 Jul 2005, Matthew Weier O'Phinney wrote: this could be a silly question. Is there some performance penalty when using the operator [in heredoc] Try doing some benchmarks using microtime(). My gut reaction is that there shouldn't be any difference; heredoc syntax is simply another

[PHP] Re: Performance optimization

2005-04-07 Thread Jason Barnett
GamblerZG wrote: Are there any decent resources dedicated to PHP code optimization? By decent I mean ones that do not ask you to completely ruin readability for the sake of extra 0.003 seconds. The best way to go about it is to get a code profiler. apd / xdebug / Zend are popular choices. --

[PHP] Re: Performance optimization

2005-04-07 Thread GamblerZG
The best way to go about it is to get a code profiler. apd / xdebug / Zend are popular choices. Can't seem to install apd 0.9something or xdebug 1.0.something. pear calls phpize, which in turn outputs some cryptic message and exits. (In case of APD it's something like error on line 59. I'm not

[PHP] Re: Performance of magic_quotes_gpc ??

2004-12-19 Thread Jed Smith
They do not do the same thing. mysql_escape_string() is what you're after, if you're inserting data from user input into an SQL statement, regardless! Jed -- _ (_)___Jed Smith, Code Monkey | / __| [EMAIL PROTECTED] | [EMAIL PROTECTED] | \__ \ +1 541 606-4145 _/ |___/

[PHP] Re: performance: large includes vs small includes with lots of reads

2004-10-07 Thread Luis Bernardo
You may find this useful: http://www.hudzilla.org/php/18_1_0.php Hans H. Anderson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm trying to tweak my server a bit and wonder if it is better to have a large include file, say 20-40 kb with 15 user-defined functions, of which maybe 3

Re: [PHP] Re: performance: large includes vs small includes with lots of reads

2004-10-07 Thread Curt Zirzow
* Thus wrote Luis Bernardo: You may find this useful: http://www.hudzilla.org/php/18_1_0.php paragraphs 2 3 should be deleted. telling someone that optimal code is acceptable is like saying storing the year in a 2 char field is perfectly fine. Curt -- The above comments may offend you. flame

[PHP] Re: performance hit using imagecreatetruecolor

2004-09-13 Thread Manuel Lemos
Hello, On 09/14/2004 12:22 AM, Kevin Coyner wrote: I'm working on a website where I'd like to display a thumbnail from a repository of jpg's of normal (@ 800x600 px) size. Each time a user comes to this page, I'd like to show a new thumbnail from a different image in the repository. Obviously I

[PHP] Re: Performance of multidimensional arrays vs many variables

2004-01-28 Thread Eric Bolikowski
Hi John If you have a large number of Users using this system, your save map for sessions will grow in space, using some resources If it's very large pieces of information, i would advise you to store this info in a database. That's doomed to be more effective. Eric John Schulz [EMAIL

[PHP] Re: Performance question

2003-06-23 Thread Paul Chvostek
On Mon, Jun 23, 2003 at 08:09:57AM -0700, Hardik Doshi wrote: Hi Group, Hi Hardik. I have a question regarding retrieving the information. I have the functionlity in which on every user click, system needs to retrieve information for particular user and display the page according to the

[PHP] Re: Performance issues

2002-12-12 Thread michael kimsal
Karel wrote: I'm having a lot of trouble with loading times... Let me explain in detail: I've a full huge coded website based upon a mysql database... mysql entries: at least 2M php code: at least 1M lines (longest file about 25k, without includes) about 2 months ago we resetted the entire

[PHP] Re: Performance question

2002-04-16 Thread John Lim
I suggest using a html caching solution. Generate your html once, and store it in a file. I like http://0x00.org/php/phpCache/ Mike Fifield [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Ok I have a performance question. I run a wallpaper site; this is the url

[PHP] Re: Performance question

2002-04-16 Thread Maxim Maletsky
why not to keep both names and the pictures themselves into a database? Loggin in is not really that big deal, I think it is worth portability - you'll be changing this someday (as you get too many requests or too many pictures to request). Start from now. Performance will not change too much