various performance improvements, to parse large logfiles

performance is about 10x faster