Closed Thread Icon

Topic awaiting preservation: Multiple Functions in one include file (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12191" title="Pages that link to Topic awaiting preservation: Multiple Functions in one include file (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Multiple Functions in one include file <span class="small">(Page 1 of 1)</span>\

 
jiblet
Paranoid (IV) Inmate

From: Minneapolis, MN, USA
Insane since: May 2000

posted posted 04-22-2002 21:05

So I have two functions that I have in an include file. They are not always both used. Is it worth it (for efficiency) to put each function in it's own file or is there not significant overhead in including the unused function?

-jiblet

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 04-22-2002 22:47

I would say depending on the length it shouldn't be significant. considering most functions are only about 10-30 lines I'd say that's normally less than 1Kb. Pretty insignificant in the whole page load time.

For some reason I thought this was in the DHTML forum and we were reffering to Javascript.

Oh well same deal I wouldn't worry about it. I like to put big chunks of code in clasess that undoubtedly have methods that are not used on every page and I don't worry about it.



.:[ The Tao of Steve ]:.
Be Desireless
Be Excellent
Be Gone
...................................

[This message has been edited by bitdamaged (edited 04-22-2002).]

« BackwardsOnwards »

Show Forum Drop Down Menu