Recent

Author Topic: What the hell! Lazarus slow start!  (Read 4425 times)

stocki

  • Full Member
  • ***
  • Posts: 144
What the hell! Lazarus slow start!
« on: August 14, 2018, 08:44:05 am »
I have the latest computer (i7, 8 GB, SSD, Win7-64bit). Why does a Lazarus program start (trunk, debug, compile, run) take 1 minute 50 seconds?  Other apps run fast like hell.
« Last Edit: August 14, 2018, 08:47:48 am by stocki »

balazsszekely

  • Guest
Re: What the hell! Lazarus slow start!
« Reply #1 on: August 14, 2018, 08:53:28 am »
Quote
I have the latest computer (i7, 8 GB, SSD, Win7-64bit). Why does a Lazarus program start (trunk, debug, compile, run) take 1 minute 50 seconds?  Other apps run fast like hell.
Most likely your antivirus. Just disable it or whitelist Lazarus/FPC folders. Even Microsoft defender, which was OK in the past, slows down my applications nowadays. I just quit using av software altogether.

« Last Edit: August 16, 2018, 04:49:33 am by GetMem »

af0815

  • Hero Member
  • *****
  • Posts: 1289
Re: What the hell! Lazarus slow start!
« Reply #2 on: August 14, 2018, 08:56:34 am »
Whatis your computer doing with Lazarus?  BTW your computer is not the last :-)

Have you troubles with eg. malwarescanner ? Or a spezial configuration. Lazarus win32 ?
regards
Andreas

Thaddy

  • Hero Member
  • *****
  • Posts: 14204
  • Probably until I exterminate Putin.
Re: What the hell! Lazarus slow start!
« Reply #3 on: August 14, 2018, 09:05:29 am »
Not reproducible here. Av = microsoft defender. OS = windows 10.2 developer preview x86_64.
Specialize a type, not a var.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9792
  • Debugger - SynEdit - and more
    • wiki
Re: What the hell! Lazarus slow start!
« Reply #4 on: August 14, 2018, 12:54:25 pm »
Maybe https://bugs.freepascal.org/view.php?id=33705

That is if it started with the last window update?

You mean
- your app starts slowly
- the IDE itself starts slowly
?

In the latter case, how many units do you have open? That may affect the above issue.
The fix will be in the 1.10 release. No date yet.

ASBzone

  • Hero Member
  • *****
  • Posts: 678
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
Re: What the hell! Lazarus slow start!
« Reply #5 on: August 14, 2018, 04:11:34 pm »
I have the latest computer (i7, 8 GB, SSD, Win7-64bit). Why does a Lazarus program start (trunk, debug, compile, run) take 1 minute 50 seconds?  Other apps run fast like hell.

When did it start running like that?   What changed?

Have you checked the eventlog on your system?

My system config is a little different from yours (Win10 vs Win7, Laz 1.8.4 and FPC 3.0.4 vs trunk), but no issues here across multiple systems.
-ASB: https://www.BrainWaveCC.com/

Lazarus v2.2.7-ada7a90186 / FPC v3.2.3-706-gaadb53e72c
(Windows 64-bit install w/Win32 and Linux/Arm cross-compiles via FpcUpDeluxe on both instances)

My Systems: Windows 10/11 Pro x64 (Current)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: What the hell! Lazarus slow start!
« Reply #6 on: August 14, 2018, 04:21:21 pm »
So what is the most CPU eating process in your taskmgr when this happens? Big chance that is the perp.

stocki

  • Full Member
  • ***
  • Posts: 144
Re: What the hell! Lazarus slow start!
« Reply #7 on: August 15, 2018, 09:24:48 am »
Seems to be the Laz-ide and the debugger.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9792
  • Debugger - SynEdit - and more
    • wiki
Re: What the hell! Lazarus slow start!
« Reply #8 on: August 15, 2018, 11:18:15 am »
How big is your project?

How long does it take for a new application (type program):
Code: Pascal  [Select][+][-]
  1. program foo;
  2. begin
  3.   writerln(1);
  4. end;
How long does it take for a new/empty form?

How long does it take to compile (but not run)?
How much of this time is spend in the linker?

How long does it take to run (when no compiling/linking is needed)?

stocki

  • Full Member
  • ***
  • Posts: 144
Re: What the hell! Lazarus slow start!
« Reply #9 on: August 15, 2018, 04:37:50 pm »
 1 minute 50 seconds was with an empty project! I don' know. Everthing seems freezed.

Trenatos

  • Hero Member
  • *****
  • Posts: 535
    • MarcusFernstrom.com
Re: What the hell! Lazarus slow start!
« Reply #10 on: August 15, 2018, 04:52:41 pm »
That's really weird..
I'm on a Mac, Lazarus starts instantly and compiles super fast for me.

wp

  • Hero Member
  • *****
  • Posts: 11856
Re: What the hell! Lazarus slow start!
« Reply #11 on: August 15, 2018, 05:14:27 pm »
1 minute 50 seconds was with an empty project! I don' know. Everthing seems freezed.
The only thing I could imagine is an aggressive anti-virus program running in the background as was already mentioned. What is your antivirus? Avast does a 10-20 second detailed scan when it meets an unknown program. BitDefender even was destructive and deleted compiler files. Windows Defender is ok but is eveloving into that direction, too. I observed extreme slowdown of program start with Defender before I had put the Lazarus/fpc installation folders as well as the project folders onto the WinDefender white-list.

af0815

  • Hero Member
  • *****
  • Posts: 1289
Re: What the hell! Lazarus slow start!
« Reply #12 on: August 15, 2018, 05:19:58 pm »
trunk Lazarus win32 - 5 seconds from doubleclick on icon up to using it -  on win 10/64 prof latest patches, with a small project loading.  AV is activated.

I have sent a lot of files in the past to Avira to show them the positive false. All files were accepted and aknowledged as positive false and it was running smooth and smoother with activated AV. :-) (But a longer way). BTW: I use a Pro Scanner, so i can send them positive false :-)

Edit: An older system (i7, 24GB Ram, HD with SSD caching). I think Lazarus is starting from SSD cache.
« Last Edit: August 15, 2018, 05:25:23 pm by af0815 »
regards
Andreas

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9792
  • Debugger - SynEdit - and more
    • wiki
Re: What the hell! Lazarus slow start!
« Reply #13 on: August 15, 2018, 08:57:35 pm »
1 minute 50 seconds was with an empty project! I don' know. Everthing seems freezed.

1)
Does the message window say anything about building packages, such as LCL?
This could be if something went wrong, and the IDE thinks you changed options for packages, or if timestamps on disk got messed up.

You can check (before pressing build or run) under menu: View > Ide Internals > What needs building.

2) When you press run, the following step are usually performed:

2a) Compiling of your project
2b) Linking (this is shown in the messages window)
2c) starting GDB, and getting it to run your app

2b can get really slow, if you have not enough memory.
  This is especially true, if you use smart linking.

2c can be measured, if you first "build" without running, and then "run" the project.

--------------
If you also use FPC trunk:

IIRC there recently where reports about problems building lots op packages. (I think on the mail list). I don't know what caused the error, but maybe it is related.
It may be worth testing with 3.0.4 (and/or up/downgrade the svn version of fpc)
« Last Edit: August 15, 2018, 08:59:50 pm by Martin_fr »

 

TinyPortal © 2005-2018