Use GNU gprof. It will tell you how long certain portions of your code take to run. While functions themselves don't affect network lag much, this may help a tiny bit. At least it will tell you where you need to fix your code up, if there are certain portions that take time.
__________________
"You looked at me as if I was eating runny eggs in slow motion." - Gord Downie of The Tragically Hip
|