...

View Full Version : need some clearing up on large files



jeromepelletier
06-12-2006, 07:25 PM
Say if i had a file thats 1 megabyte and its all functions, when i include that into my main file, only the parts being used are called correct? so not the whole 1 mb file is being read.

also, does using php_self speed up load time?

lavinpj1
06-12-2006, 10:58 PM
Say if i had a file thats 1 megabyte and its all functions, when i include that into my main file, only the parts being used are called correct? so not the whole 1 mb file is being read.

I am not exactly sure what it does, but remember, computers are not magical. They must read the whole file to find the right part.


also, does using php_self speed up load time?

As opposed to using what?

~Phil~

jeromepelletier
06-13-2006, 12:10 AM
as oppose to jsut doing the file name, someone told me it was..i argued it would be no different, thats why im asking :)

missing-score
06-13-2006, 06:29 AM
no, the entire 1 Meg file will be loaded and parsed into your script. Only the functions you call will acutally be used, but everything will be loaded.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum