Welcome to WebmasterWorld Guest from 220.127.116.11
I want to determine wether I should store information in session or run the method for every page call.
Storing to session costs about .5 MB. How can I determine the use of resources for running the methods that create the data?
I need the data for every page. I figure its less work recalculating the data all the time, but has a memory cost.
The memory cost should be the same when the page is being requested regardless of Session or running the data on the fly, but CPU usage will go up during the calculations.
However, I believe php garbage collection will release the memory usage as soon as page request is complete.
Any ideas on how to optimize this?