Thanks Andras. I tried to cachegrind gideon to get a better idea of where the time was going, but cachegrind crashes (somehow caused by the parsing threads, I think). I am suprised that doing the regexes takes so much time -- wish I could get a cachegrind of that particular part. -John