ID:1678968
 
BYOND Version:507
Operating System:Windows 7 Ultimate 64-bit
Web Browser:Firefox 35.0
Applies to:Dream Maker
Status: Open

Issue hasn't been assigned a status value.
After some API tracing, we discovered that what the compiler does was for most the compile was poking around in the filesystem and constantly checking the current timezone in the registry.

With minimal FILE_DIR defines the compile takes precisely 2 minutes.
With no FILE_DIR defines at all (pulling resources from the RSC) the compile takes 50 seconds.

This seems like it could use a bit of optimization.
This is what has irked me about FILE_DIR from the beginning and why I try to avoid it as much as possible.

Can FILE_DIR be deprecated altogether (w/ a converter to refactor existing code)? Unless I'm mistaken it only leads to bad coding habits. IMO paths to resources should always be provided in full (relative to the project folder), not "guessed" by the compiler.
Yeah, I admit that when we instituted FILE_DIR we had no idea people would be making projects so large. I'm sure we can come up with a way to cache the paths so that little checking has to be done. I'm not sure what is going on with the timezone but we'll look into it.
Maybe the timezone thing is related to checking if files are from the "future" or not... but not properly working?
It'd probably be a good idea if projects started using direct paths, rather than making DreamMaker look for all of the files itself...? It's that simple..