How about this consideration? I would like to report about the limitation of a project, because I investigated it by the experiment.
- In the case of the simple script, I could confirm that the script with over 700,000 lines can work fine.
- But it was found that when the script was changed, the limitation was changed. Namely, the error occurred even when the script lines are less than 700,000.
From this situation, I made a hypothesis that the limitation of the script might be due to the size of one project. So I investigated this by the experiment.
In my experiment, I investigated the limitation by increasing the file size as following 2 patterns.
- Increase only script lines.
- Increase only comments.
The file size was directly obtained by downloading the project as a file. In this experiment, I modified the size of "appsscript.json" to 0 bytes. The maximum size obtained by pattern 1 and 2 were 10,485,115 bytes and 10,485,206 bytes, respectively.
From above result, I have concluded that the maximum file size of a project is 10 MB.
But 10 MB is 10,485,760 bytes. It is considered that this difference might be due to other information including in the project. Because when the project is retrieved by Apps Script API, the returned values include also the information except for the source.