Blackstraw interview question

Given a big size file how to reduce the time in python file processing