does removing the comments make a noticable difference to script runtime?
Far from a ready solution, but worth keeping an eye on (smells like Harmattan candidate material): http://code.google.com/p/unladen-swa...ki/ProjectPlan