LimeReport Forum

General Category | Основное => Discussion | Обсуждение => Topic started by: Mucip on March 08, 2020, 02:35:39 PM

Title: Slow startup time!
Post by: Mucip on March 08, 2020, 02:35:39 PM
Hi,
Everything perfect with LimeTeport except speed! :(

When I add #include<LimeReport> in the header of the form, it's dramaticly make slow the loading time. I'm waiting while formX.show()

Any advice  please?

Regards,
Mucip:)
Title: Re: Slow startup time!
Post by: Arin Alex on March 08, 2020, 09:52:29 PM
Hi!
It's very strange. 
I have tested and I did not find any difference :)
If you just add the #include <LimeReport> nothing that can slow down your app is happen.
If you create an instance and start loading a report's pattern into it, a slowdown may occur in this case.
Title: Re: Slow startup time!
Post by: Mucip on March 09, 2020, 11:41:36 AM
Hi,
"If you create an instance and start loading a report's pattern into it, a slowdown may occur in this case."

I do like this. How can I do other than this way?

Regards,
Mucip:)
Title: Re: Slow startup time!
Post by: Arin Alex on March 09, 2020, 12:04:30 PM
Hi!
Look, limereport can take some application's time for some reasons:
 - a report's pattern is big and contains a lot of items (limereport needs some time to parse it)
 - a report's pattern contains queries and limereport needs some time to run it (if queries are not optimized it can take a lot of time)

How to solve the problem:
 - load a report's pattern just before generation.
 - optimize query
 - use callback datasources     
Title: Re: Slow startup time!
Post by: Mucip on March 10, 2020, 12:37:19 PM
Hi,
As you advice, I loaded LimeReport when I press the "Print" button. Now it's better. Thanks.

Regards,
Mucip:)
Title: Re: Slow startup time!
Post by: francois on October 03, 2020, 09:38:55 PM
Hi,

When i do new ReportEngine(this) the allocation is slow
Can you help me about slow execution ?

Thank's
Title: Re: Slow startup time!
Post by: Mucip on October 03, 2020, 10:37:01 PM
Hi,
Please follow the Arin's advice. Load the report just before the generation.
If you load it when you create form then it's slow...

Regards,
Mucip:)
Title: Re: Slow startup time!
Post by: francois on October 04, 2020, 12:46:07 AM
Hi,
Please follow the Arin's advice. Load the report just before the generation.
If you load it when you create form then it's slow...

Regards,
Mucip:)

Hi Mucip,

Thank you
I will try your advice soon

Best Regards
Title: Re: Slow startup time!
Post by: alexyuisme on April 13, 2021, 06:18:30 AM
Hi,
Please follow the Arin's advice. Load the report just before the generation.
If you load it when you create form then it's slow...

Regards,
Mucip:)

Hi Mucip,

Thank you
I will try your advice soon

Best Regards

Hi, francois :

I have a similar issue as you did regarding the slow startup time. Did you solve this issue?

Thanks,
Alex