[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 05-15-2005, 11:24 AM   #1 (permalink)
NamePros Regular
 
ninedogger's Avatar
 
Join Date: Jun 2004
Location: Iowa
Posts: 669
31.10 NP$ (Donate)

ninedogger is a name known to allninedogger is a name known to allninedogger is a name known to allninedogger is a name known to allninedogger is a name known to allninedogger is a name known to all

Save The Children
Echo (why is it slow compared to other langauges) php

Why is echo so slow?

I run about a 100line variable in a for loop 5 times...the output is nearly 4/10 of a second.....however in coldfusion, it remains below 1 MS!

whats the logical purpose for this?
ninedogger is offline  
Old 05-15-2005, 11:04 PM   #2 (permalink)
NamePros Regular
 
ninedogger's Avatar
 
Join Date: Jun 2004
Location: Iowa
Posts: 669
31.10 NP$ (Donate)

ninedogger is a name known to allninedogger is a name known to allninedogger is a name known to allninedogger is a name known to allninedogger is a name known to allninedogger is a name known to all

Save The Children
I just learned that echo isn't slow....echo is fast no matter how large the variable is....however now whats the reason why asigning a varibale takes half second?

link her:

http://www.frozenrain.com/forum/speed.php

http://www.frozenrain.com/forum/speed.php?t=1 for source


i spilt $var into four things to see if it would be faster then just $var = "whole thing" but its still slow


edit..Sorry for double post, I wasn't thinking
ninedogger is offline  
Old 05-16-2005, 09:36 AM   #3 (permalink)
Senior Member
 
Peter's Avatar
 
Join Date: Nov 2003
Location: Scotland
Posts: 4,900
0.60 NP$ (Donate)

Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute

Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
firstly assinging variables in php does not take 1/2 of a second.

Secodnly the link you provided shows your hosting account has been suspended,
__________________
Manage your portfolio using my new Domain Portfolio Management script.
Securing Your Domain Name From Theft
Peter is offline  
Old 05-16-2005, 10:43 AM   #4 (permalink)
Senior Member
 
Join Date: May 2003
Posts: 2,211
6,170.25 NP$ (Donate)

adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough

Breast Cancer
Quote:
Originally Posted by ps2gamer
I just learned that echo isn't slow....echo is fast no matter how large the variable is....however now whats the reason why asigning a varibale takes half second?

link her:

http://www.frozenrain.com/forum/speed.php

http://www.frozenrain.com/forum/speed.php?t=1 for source


i spilt $var into four things to see if it would be faster then just $var = "whole thing" but its still slow


edit..Sorry for double post, I wasn't thinking
This Account Has Been Suspended
Please contact the billing/support department as soon as possible.
adam_uk is offline  
Old 05-16-2005, 12:13 PM   #5 (permalink)
NamePros Regular
 
ninedogger's Avatar
 
Join Date: Jun 2004
Location: Iowa
Posts: 669
31.10 NP$ (Donate)

ninedogger is a name known to allninedogger is a name known to allninedogger is a name known to allninedogger is a name known to allninedogger is a name known to allninedogger is a name known to all

Save The Children
sorry for that, i dont know whats up with that...but I moved the page to my normal host:

http://gamingstorm.com/speed.php

http://gamingstorm.com/speed.php?t=Np_rules


I seem to have just made an array mistake.....Im getting the echo to be less then 1ms now and the variable assigning is giving me 2.9087066650391E-05, so thats really fast im taking it

my old source had this:
PHP Code:
$end1 = $end1[0] + $end1[1 -$start[0] + $start[1]];
(which is why it showed some 1second number)


If anyone sees anything wrong with that please post, thanks
ninedogger is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial: Getting started with PHP (The Basics) deadserious Webmaster Tutorials 60 11-17-2007 11:35 AM
Googlism - What does google think of you? deadserious The Break Room 55 12-15-2005 09:09 AM
Beware of PHP! PolurNET The Break Room 25 03-29-2005 03:04 PM

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 06:54 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85