That's just for your testscene, right? The script shouldn't be the issue then. However, try the following:
Download VMMap if you haven't already.
Put bad syntax at the very end of your script. Compile it, wait for the compiler to throw an error message but keep the process open. Start VMMap, pick the acknex.exe process and look at the memory (total/ heap).
You can remove the dummy line at the end of the script and check memory usage at runtime if you want to.

If the script compiling does not consume a ton of memory it's indeed your files, probably the textures (and/ or maybe even a huge nexus?).


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends