Bandwidth vs. Computing

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Bandwidth vs. Computing

Post by superdezign »

When PHP takes long to perform actions, does that use up bandwidth? I'm writing an "on-the-fly" *.ico conversion and want to know if it's a good idea to utilize it, or just to share it.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Re: Bandwidth vs. Computing

Post by volka »

Computing doesn't necessarily produce net traffic. As long as there's no output there's no net traffic.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

So, the server won't count it against my bandwidth? :D
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

But your cpu time and/or amount of ram.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Graphics processing often utilizes a lot of CPU, so be careful.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

feyd wrote:Graphics processing often utilizes a lot of CPU, so be careful.
Yes it does. Ugh. I"ce got a question, but I'll put it in a different thread.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

You should cache the icon, because it's probably going to be one of the most called items on your website.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Ambush Commander wrote:You should cache the icon, because it's probably going to be one of the most called items on your website.
Yeah, I've already set up the class to save the icons after they've been processed so the first time it's created will take time, but any time after that will just load the file.
Post Reply