On 09.09.2015 13:01, Juha Manninen wrote:
On Wed, Sep 9, 2015 at 1:30 PM, Ondrej Pokorny <[email protected]> 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 ...

Juha
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?

Ondrej
Index: components/ideintf/ideimagesintf.pas
===================================================================
--- components/ideintf/ideimagesintf.pas        (revision 49794)
+++ components/ideintf/ideimagesintf.pas        (working copy)
@@ -169,6 +169,11 @@
   else
     Exit;
   end;
+  if List.Count > 0 then
+  begin
+    Result := 0;
+    Exit;
+  end;
   try
     Result := List.AddResourceName(HInstance, ImageName);
   except
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to