Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XCA 2.5.0 & 2.6.0 very slow #535

Open
JBau32 opened this issue Mar 4, 2024 · 11 comments
Open

XCA 2.5.0 & 2.6.0 very slow #535

JBau32 opened this issue Mar 4, 2024 · 11 comments

Comments

@JBau32
Copy link

JBau32 commented Mar 4, 2024

Most likely same problem as #533

Looking at the process activity, I see that it constantly spams the Windows Registry for Time zones. (QDateTime fromString)
Tracing it further it is due to pki_x509::bg_color/pki_base::bg_color which are being called a lot.
Temporarily removing that function using a debugger has lead to improved responsiveness and no more constant freezing.
There still is some stalls/freezes but not anytime i hover or select a certificate.

OS: Windows 11

@JBau32
Copy link
Author

JBau32 commented Mar 4, 2024

Found related QT6 bug: https://bugreports.qt.io/browse/QTBUG-120285

@chris2511
Copy link
Owner

On my Windows 11, XCA works pretty fast.
Even when running inside a virtual machine hosted on an old and slow linux-intel-I5.
If QT6 is the culprit, please try the QT-5.15 action-build of XCA-2.6.0

@JBau32
Copy link
Author

JBau32 commented Mar 4, 2024

It gets significantly slower if you add 200-500 certificates.

And yes, just tried, qt5 variant is unaffected.
Qt6 seems to have fixed this already on a later 6.6 patch, xca release uses 6.6.0.

@JBau32
Copy link
Author

JBau32 commented Mar 4, 2024

Unfortunately the qt5 variant seems overall slower.
So manually patching out pki_x509::bg_color/pki_base::bg_color functions on qt6 variant achieves the best results.
Nested RootCA + 200 sub certificates are a big slowdown

@chris2511
Copy link
Owner

chris2511 commented Mar 4, 2024

Looks like selecting Don't colorize expired certificates in the options dialog also speeds up XCA without patching. The latest 6.6.2 QT release is still notably slower when colorizing expired certificates.

@JBau32
Copy link
Author

JBau32 commented Mar 4, 2024

Good to know!
That option will be my go-to workaround for now till QT devs have resolved that issue.

@WRW001
Copy link
Contributor

WRW001 commented May 5, 2024

Using the latest 6.6.3 QT release will resolve this issue. You can have expired certificates colorized without slowing XCA down. The CI&DI currently configuration can't build Windows binaries using QT 6.0.X, so there will be no PRs. You can make Windows binaries by yourself.
#533

@GiladHi
Copy link

GiladHi commented May 10, 2024

Any chance of a new release / build with QT 6.3.3? The only issue I have with the latest version is the speed...

@WRW001
Copy link
Contributor

WRW001 commented May 11, 2024

Any chance of a new release / build with QT 6.3.3? The only issue I have with the latest version is the speed...

https://github.com/WRW001/xca/releases

@GiladHi
Copy link

GiladHi commented May 11, 2024

Thanks for the new version and the quick reply! 😎

@GiladHi
Copy link

GiladHi commented May 12, 2024

Seems like Google Chrome is blocking the downloading of this build... Maybe I should wait for the next official version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants