Hi geometry dash lite, Reading a file line by line is actually often better for large files because it uses less memory. The problem is usually what happens inside the loop.

A good first step is to identify:
  1. Which part of the script takes the most time
  2. How often it runs
  3. Whether the same work is repeated unnecessarily