Hi,
I like anyones thoughts on if and why the following two case will differ greatly in execution speed. My options are:
1/. Have a number of different scripts (approx 10) which are essentially the same, but with slight differences in relation to set variables with each script. All the scripts are called to execute when the page is opened.
2/. Have 1 script which is executed x number of times (same number as individual scripts in above case), but each time the script is called, a passed variable, sets up the correct set variables (as case 1) via switch statements.
Now, basically I'm asking as I don't exactly know the process by which the scripts are executed.
In my head I'm thinking 1/. must be faster as the processor should be able to execute the 10 different scripts at approx the same time, but with case 2/. I'm thinking that that the processor may not be able to execute the same script a multiple of x number times (with different passed variables) at the same time, but must do each one sequentially.
However, as unknowledgable as I am, I have no doubt that my thinking could well be flawed.






Bookmarks