Recently I've noticed that compiling and launching of my project inside Unity editor takes much more time than couple days ago. Much more. About 30 seconds just for launch instead of 2 seconds. I've examined previous versions of the project and found that this delay appears from nowhere because of small changes in scripts. Nothing else have changed. And nothing special in this lines. Just game logic. And I also see in task manager that in "good" version game takes 100 Mb of RAM when launching. In "bad" version it takes 1Gb (!) (and falls down to "good" 100 Mb when launched). Just because of 30-40 more lines of code in game logic...
I've tried complete reimport of assets. Nothing happened.
What could it be? Any know bugs in Unity which can do it? Or something special?
UPD: I've discovered it more and found the problem. It's a cross reference in classes. When Class1 have a variable of type Class2. And Class2 a variable of type Class1.
The project to test it here: http://forum.unity3d.com/viewtopic.php?p=389727#389727
So I guess it's bug. And the bad one.
Are there already any methods to solve it?
Couple of days ago I started to port my project to the iPhone and it often suddenly crashes (in general I couldn't launch it while it works on pure Mac).
I've found that this bug totally crashes Unity iPhone 1.7. More over in PC/Mac there could be one or two cross referenced class variables and problems start with three or more of them. In Unity iPhone it's unable to have even one.
Hope experts will say something about it :) Will it be fixed in Unity 3, or I should start rewriting code?