Click to See Complete Forum and Search --> : Require seems to increase processing time significantly


nEMESIS4
04-14-2005, 09:52 AM
Sorry if this is a begineers question, but I'm trying to go back through some scripts I've created and optimize them better.

Using Time-HiRes I notice after each require line the elapsed time would increase by 0.1 to 0.3 seconds. Each of the required files only includes sub-routines that are called at a later part of the script.

The total page average processing time varies between 0.5 and 1.3 seconds.

When I minus the processing time using for the require lines the page average would be around 0.02 to 0.15 seconds.

Is that decent for an ecommerce site with heavy traffic?