Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: "new LimeReport" takes 30~40 seconds!  (Read 19087 times)

alexyuisme

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #45 on: April 14, 2021, 10:12:06 am »
It takes 4 secs to launch your designer.exe within your test folder. Can you copy the extra dlls from my env2 to your test folder and do a hard restart(restart your machine and run again)? In this case, mine takes more than 50 secs.

Alex
« Last Edit: April 14, 2021, 10:39:33 am by alexyuisme »

Subst

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #46 on: April 14, 2021, 03:20:13 pm »
alexyuisme, designer.exe it's not my application it's native app from LR, LimeReport Designer
test_limereport.exe - it's your test application

I can't hard restart my machine now :( I do it very rarely. And second - my build is with mingw SJLJ, your dll's are building with mingw SEH
SJLJ & SEH - are different methods of exception handling and not compatible one to other

but I can say it seems the your additional libs are slow down the lauching ANY application
The trouble not in Limereport

alexyuisme

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #47 on: April 14, 2021, 03:56:47 pm »
but I can say it seems the your additional libs are slow down the lauching ANY application
The trouble not in Limereport

-> Can't agree. If you comment out "new LimeReport" in my test program, the launch time becomes much much faster, so it definitely has something to do with Limereport. I will dive into the source code and narrow down the problem. Maybe Lamereport is looking for dll plugins that are located in the exe directory but I don't find proof at this moment.

Alex

Subst

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #48 on: April 14, 2021, 04:56:50 pm »
alexyuisme, I can't andastand why on my machine LRDemo_r1 in env2 takes about 2 seconds not 30 secs or minute

alexyuisme

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #49 on: April 14, 2021, 06:09:30 pm »
alexyuisme, I can't andastand why on my machine LRDemo_r1 in env2 takes about 2 seconds not 30 secs or minute

Restart your machine and try again. Doing restart guarantees no memory cached.

Alex

Subst

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #50 on: April 14, 2021, 06:15:02 pm »
alexyuisme, I can't restart machine
I restart my machine once at several monthes

alexyuisme

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #51 on: April 14, 2021, 06:39:41 pm »
alexyuisme, I can't restart machine
I restart my machine once at several monthes

Restart once at several months ;D...then I am afraid it is difficult to reproduce this issue.

That's fine. I will keep you posted whenever I find something in the source code.

Alex
« Last Edit: April 14, 2021, 06:44:53 pm by alexyuisme »

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1005
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #52 on: April 14, 2021, 07:04:53 pm »
alexyuisme, Hi. You can try to switch off the form designer. Compile limereport with CONFIG+=no_formdesigner. 
It seems I found where limereport tries to load dlls from application dir. I will fix it soon. 
« Last Edit: April 14, 2021, 07:56:56 pm by Arin Alex »

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1005
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #53 on: April 14, 2021, 09:25:37 pm »
alexyuisme, I think I have fixed the issue :) You can check it.

Subst

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #54 on: April 14, 2021, 10:23:46 pm »
alexyuisme, why?
I have some toolchains for different platform, 32 bits and 64 bits with mingw, x64 with MSVC, x86-32 for Win XP (qt 5.6)
I can run one of them then another and cash will be unload

Alex has fixed trouble, try
« Last Edit: April 14, 2021, 10:34:26 pm by Subst »

alexyuisme

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #55 on: April 15, 2021, 05:16:27 am »
Hi, all:

Now we are talking.  ;)

tested ver.1.5.85 and the launch time is OK now.

Thanks,
Alex