I just noticed something odd today while profiling:
when I do this:
var loader:Loader = new Loader();
loader.load( new URLRequest( fileUrl ) );
If the fileUrl is loaded from a relative url directly on my machine then everything is fine, although if fileURL is a remote asset (Http:// etc...)
I notice a drammatic spike in memory in "Function".
I cannot explain what is going on, those are the exact same file and whitout bytecode in it (no code, no linkages, no classes).
Literally the only difference is that one is loaded from my machine and the other from the internet.
In my case I had Function memory less than 1MB if i load locally, more than 25MB if I load on internet.
What is going on, I have never noticed anything like this.