Bhaumik Patel
Bhaumik Patel

Reputation: 15726

Why SAP crystal report load very slow only first time?

Can anyone know why SAP crystal report load very slow even with simple report only first time then after it load quickly and what is the solution to overcome with it?

Upvotes: 4

Views: 3403

Answers (1)

HelloW
HelloW

Reputation: 1617

If you are displaying the crystal report using the .net platform, the first time the form loads it will be slow because of the time it takes the JIT compiler to generate the machine code.

We ended up running a report when the main program starts so that subsequent reports are faster.

  1. The report opens minimized so that you don't see it.
  2. There is a flag that is checked so that as soon as the report is loaded it is closed from .net.
  3. This is a report that has nothing more than a bit of text on it. No connections to the server or anything

More in depth explanation of what happens with JIT compilation

SO answer about when JIT compilation happens

Upvotes: 2

Related Questions