Fast input/output method in CP

How fast input/output method helps to run code efficiently ? How it works?? What’s the logic?