FreeCAD slower startup
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
FreeCAD slower startup
I just updated today from daily PPA and startup (with splash screen) seems to take ages compared to yesterday.
Roughly it's 3~5x longer that starting my own build based on yesterday master.
Am I the only one concerned ?
---
OS: Ubuntu 21.04 (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.27238
Build type: Release
Branch: master
Hash: 4acef3f14fe694f28f7935108d36341b8df83a39
Python version: 3.9.5
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.5.2
Locale: French/France (fr_FR)
Roughly it's 3~5x longer that starting my own build based on yesterday master.
Am I the only one concerned ?
---
OS: Ubuntu 21.04 (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.27238
Build type: Release
Branch: master
Hash: 4acef3f14fe694f28f7935108d36341b8df83a39
Python version: 3.9.5
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.5.2
Locale: French/France (fr_FR)
Re: FreeCAD slower startup
Can confirm. In the log there is nothing unusual.
Code: Select all
OS: Debian GNU/Linux 11 (bullseye) (X-Cinnamon/lightdm-xsession)
Word size of FreeCAD: 64-bit
Version: 0.20.27241 (Git)
Build type: Release
Branch: master
Hash: 2cb478fd66dc76d91695dacff15fd764e80c8c62
Python version: 3.9.2
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.6.0
Locale: English/United States (en_US)
Re: FreeCAD slower startup
@wmayer : may it be due to your big commit about C++11 cleanup?wmayer wrote: Ping
Re: FreeCAD slower startup
Two hours ago there are some more commits made about that. I compile and test it. If that behavior is the same, then i make a test compile with 0.20.27236 and one 0.20.27235 and compare them.
Greetings
user1234
Greetings
user1234
Re: FreeCAD slower startup
Better odds that it's my fault -- I wonder if it's the initialization process of the QNetworkAccessManager used by the Addon Manager. Let me poke at it.
ETA: That's git commit 2b0a4dc64339266b2e0b45fb974f9ab105fde1ae if someone else wants to look. The QNAM runs on its own thread, so I don't think it should block startup, but maybe I've screwed something up.
ETA: That's git commit 2b0a4dc64339266b2e0b45fb974f9ab105fde1ae if someone else wants to look. The QNAM runs on its own thread, so I don't think it should block startup, but maybe I've screwed something up.
Re: FreeCAD slower startup
Yes, this commit has the loading issue. The commit before starts normal.chennes wrote: ↑Wed Jan 26, 2022 7:18 pm ETA: That's git commit 2b0a4dc64339266b2e0b45fb974f9ab105fde1ae if someone else wants to look.
Greetings
user1234
Re: FreeCAD slower startup
Thanks for testing -- I'll refactor the Addon Manager's initialization to ensure that happens in the background.
Re: FreeCAD slower startup
OK, I refactored to ensure the Network Manager didn't get created until first use: I wasn't experiencing this slowdown on my machine, though so I can't be certain this addresses the issue. When you have a moment, can you please test git commit f045a0b6f12ec82c0ddb44570c81dfcc3940af0d?
Re: FreeCAD slower startup
Could you push as a draft PR ? So that I don't have to deal with fetching (yet another ) remote.chennes wrote: ↑Thu Jan 27, 2022 12:44 am OK, I refactored to ensure the Network Manager didn't get created until first use: I wasn't experiencing this slowdown on my machine, though so I can't be certain this addresses the issue. When you have a moment, can you please test git commit f045a0b6f12ec82c0ddb44570c81dfcc3940af0d?
Re: FreeCAD slower startup
I seems to have another problem with this build. As soon as started without doing anything, it uses 100% of a CPU core permanently.
Will try to dig on this.
Will try to dig on this.