A few lines of sample input would allow us to check that changes don't screw things up.
The start of some sanity?
In reply to Re: script optimization by BrowserUk in thread script optimization by tannx