[Lazarus] IDE CoolBar issue
lazarus at kluug.net
Wed Sep 9 14:20:09 CEST 2015
On 09.09.2015 13:01, Juha Manninen wrote:
> On Wed, Sep 9, 2015 at 1:30 PM, Ondrej Pokorny <lazarus at kluug.net> wrote:
>> IMO, the images are loaded only once in the IDEImageList or how it is
>> called, am I wrong?
> Maybe that whole loading can be threaded. One more task to my ToDo list ...
Before you do unnecessary work, I made a small test. See the patch. The
patch disables image loading (strictly speaking it allows only one image
to be loaded and always uses this image). Then you can test a speed gain
of IDE launch. I haven't observed any speed improvement. The IDE launch
time is still the same. Does it reduce IDE launch time for you?
So image loading is not a problem at all.
Btw. if something should be improved about IDE launching - does Lazarus
allow a "single IDE" option? E.g. when I open a .pas file in windows
explorer or whatever, it is opened in the already active Lazarus IDE and
not in a new one? Something like "UniqueInstance"
(http://wiki.lazarus.freepascal.org/UniqueInstance) for the IDE?
-------------- next part --------------
--- components/ideintf/ideimagesintf.pas (revision 49794)
+++ components/ideintf/ideimagesintf.pas (working copy)
@@ -169,6 +169,11 @@
+ if List.Count > 0 then
+ Result := 0;
Result := List.AddResourceName(HInstance, ImageName);
More information about the Lazarus