Jump to content

Is my 110k file a problem?


johnsmith153

Recommended Posts

My PHP file is 110k and it is all server-side stuff.

 

The html thrown to the user is minimal.

 

Is a 110k file a problem for a server, I know 110k of html & images can be a problem for dial-up to download, but how about 110k for a server to process?

 

It would be helpful to know how much longer this may process than say a 30k file.

 

I understand it depend on database connections etc, but lets assume these are similar for both files.

 

Most of the file is text that is printed depending on the query, mainly if statements etc.

Link to comment
https://forums.phpfreaks.com/topic/125667-is-my-110k-file-a-problem/
Share on other sites

110k sitting in memory is minimal...

 

Whether or not the server struggles to parse it really depends on how well (bad?) you've programmed it.

 

I know it's not much for the filesystem, but that's still a HUGE file, which leads me to believe that it wasn't programmed as well as it could have been.

Making assumptions is never good.

 

I'm sure i've got more than a few projects that total over 200kb in plain text... at some executions almost all of it is included. Not to big of a difference, if you ask me. Mine might run slightly better on lighter executions, but if he needs all the code for every execution, it might actually be _more_ efficient.

 

I'd hate to be the one that debugs it though ;)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.