Recent

Author Topic: [SOLVED] Lazarus apps very slow on linux  (Read 1429 times)

Codrut1001

  • New Member
  • *
  • Posts: 22
[SOLVED] Lazarus apps very slow on linux
« on: March 31, 2022, 08:36:50 pm »
I was testing out the lazarus IDE on my linux machine and I noticed that compiled apps run very slowly, even when I run them outside the IDE. I also noticed that upon opening the apps with sudo permisions they load instantly.

This slow performance really makes them hard to use.

I was wondering what is causing this? Is there a way to make them load instantly without hanging?

They usually hang for 15 seconds then they can be interacted with.

Solution can be found here:

https://askubuntu.com/questions/1184774/some-applications-on-ubuntu-19-10-very-slow-to-start

Thanks af0815 for the solution!
« Last Edit: April 01, 2022, 12:55:29 pm by Codrut1001 »

MarkMLl

  • Hero Member
  • *****
  • Posts: 8565
Re: Lazarus apps very slow on linux
« Reply #1 on: March 31, 2022, 09:23:33 pm »
No problem here. Tell us more about your system (what distro, distro version, kernel version, display manager AKA desktop environment) and development environment (Lazarus and FPC versions, which widget set you're compiling for).

Also consider whether there's anything in your app which makes it inherently problematic, e.g. it's trying to make an unsatisfied DNS lookup during startup.

Can you attach a test program so that others can duplicate your problem?

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

zeljko

  • Hero Member
  • *****
  • Posts: 1906
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Lazarus apps very slow on linux
« Reply #2 on: March 31, 2022, 10:52:52 pm »
Qt4 is known to be slow if printers4lazarus is included because of bug in qt library.

af0815

  • Hero Member
  • *****
  • Posts: 1409
regards
Andreas

 

TinyPortal © 2005-2018