NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Echo (why is it slow compared to other langauges) php

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

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 05-15-2005, 12:24 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
nick's Avatar
Join Date: Jun 2004
Location: Iowa City
Posts: 705
nick has much to be proud ofnick has much to be proud ofnick has much to be proud ofnick has much to be proud ofnick has much to be proud ofnick has much to be proud ofnick has much to be proud ofnick has much to be proud of
 


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?
__________________
formally ninedogger
------
Want to talk to a stranger? -->| Click Here | TalkToAStranger.com | <-- Meet New Friends
nick is offline  
Old 05-16-2005, 12:04 AM THREAD STARTER               #2 (permalink)
NamePros Regular
 
nick's Avatar
Join Date: Jun 2004
Location: Iowa City
Posts: 705
nick has much to be proud ofnick has much to be proud ofnick has much to be proud ofnick has much to be proud ofnick has much to be proud ofnick has much to be proud ofnick has much to be proud ofnick has much to be proud of
 


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
__________________
formally ninedogger
------
Want to talk to a stranger? -->| Click Here | TalkToAStranger.com | <-- Meet New Friends
nick is offline  
Old 05-16-2005, 10:36 AM   #3 (permalink)
NamePros Expert
 
Peter's Avatar
Join Date: Nov 2003
Location: Scotland
Posts: 5,069
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, 11:43 AM   #4 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough
 


Breast Cancer
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, 01:13 PM THREAD STARTER               #5 (permalink)
NamePros Regular
 
nick's Avatar
Join Date: Jun 2004
Location: Iowa City
Posts: 705
nick has much to be proud ofnick has much to be proud ofnick has much to be proud ofnick has much to be proud ofnick has much to be proud ofnick has much to be proud ofnick has much to be proud ofnick has much to be proud of
 


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[-$start[0] + $start[1]]; 
????: NamePros.com http://www.namepros.com/programming/90354-echo-why-slow-compared-other-langauges.html
(which is why it showed some 1second number)


If anyone sees anything wrong with that please post, thanks
__________________
formally ninedogger
------
Want to talk to a stranger? -->| Click Here | TalkToAStranger.com | <-- Meet New Friends
nick is offline  
Closed Thread


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


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

Liquid Web Smart Servers  
All times are GMT -7. The time now is 06:33 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger