in reply to optimization in file processing
If the code is not too long, you can also post it here, maybe somebody can spot an obvious bottleneck.