Editor is going from 800mb of ram to 8GB in about 6 seconds

Ok, so the problem is coming from running it in the editor, if I run it in a new editor window the ram usage is normal.