Make sure the IDE .exe file and particularly all the header files you are using is on a local drive. Also, make sure what ever hard drive it is running from is not bogged down doing a bunch of other things. The background/foreground preferences should only make significantnt difference if you have a resource intensive process running in the foreground, AND another running in the background. For most people, this setting will nevemakeek noticeableldifferencece and should not be changed from the default.
Hi EverybodyI have experienced same issue with "Arduino IDE 1.6.0 for Window zip" and problem solved when i put Arduino folder in the "Exeption List" of my "Avast free antivirus". After that compilation time changed to normal condition.