Hi all,
I have a brilliant simple idea to reduce the time of (re)compiling the Lazarus.
The idea is based the fact that Lazarus (application) has unique condition when compared to any application generated by it.
Uniqueness of Lazarus.exe:
* Always distributed with source code. (only lazarus.exe is almost useless)
* Always distributed with the needed resource files (*.lfm, *.png, *.ico, *.po, etc.)
So, rather than plugging the whole tons of resource (that I think slowdown the compile time),
can we skip that and just load them when Lazarus being started ?
The trick (that IMO brilliant) is to simply tell compiler with something like
{$define let_resource_unplug}so the application being built (lazarus.exe) will switch to new behavior: load resource {$R *.lfm} from disk instead of from exe stream (HINSTANCE) it self.
I hope it speed up Lazarus?