Slow if not starting game twice in editor mode

For some reason the game, that is a small scene, takes seconds to load. The grid is only 100x100x0.5
Butif I start stop, and start again its starts very fast.

Noticed that this is if if I have made changes to any script in the project. And not if I have only used the inspector.

Might be a unity issue. Just wanted to let you know.

Something like this? http://arongranberg.com/vanillaforums/discussion/395/strange-delay-on-initial-pathfind-all-subsequent-ones-work-fine#latest

Are you sure Unity is not currently compiling the scripts? You would then see the gear spinning in the bottom right corner of the unity window.

Yes it seems similar to that thread, and the threads linked to from there http://arongranberg.com/vanillaforums/discussion/322/problem-with-astarpath-cs-startcoroutine-in-awake

I am failry sure it is not currently compiling. Tried and it makes no difference if I click play while icon is spining.
Physics and other game activity is active.

Increased threads to 3, as well deactivated threading but it made no difference.

Strange that if I clic play, and click play asap, almost doubble clicking there is no delay.

I will test out some of the comments given in those other threads. Also I am accessing A* from JS in case that makes any difference.

Should not make any difference when using JS.

I am failry sure it is not currently compiling. Tried and it makes no difference if I click play while icon is spining. Physics and other game activity is active.
Well, when the icon is spinning you shouldn't be able to start the game (it will wait until compilation is complete), so there must be some difference.