Is it possible to reduce a grasshopper file size?

My Grasshopper Keeps freezing and then crashing every so often. I have tried looking up if it’s possible but can’t find anything on it but I was wondering how I can Reduce a file size so it doesn’t keep freezing as well as how I can see if it’s too big?