Dynamo file size limit?

Does anybody know how large the dynamo file size could be before it causes the extremely slow to your computer?
This question is for a research purpose.
In my case, it’s about 1 Mb.

File size has little to Dow you speed when it comes to DYNs. My guess is this is due to element binding in the file or some other aspect at play. Can you post your DYN so I can confirm?

Try running the Dynamo graph on a new (empty) file.
It will give errors, ignore those and save the file in Dynamo.
See if the file size has gone back to normal.