04. Optimizations


Unknown macro: {scrollbar}




In this section we will discuss about some optimisation you could do to speed up your application when using JFreeReport. Don't expect to find the path to enlightenment, it is just little tips:

  • Use the less possible dynamic fields. The underlying algorithm is realy complicated and is a true performance killer to compute size of elements.
  • Use less BeanShell scripts. Theses kind scripts are compiled at runtime so it will slow down the report processing.
    The use of scripts is realy minored on 0.8.8 and above versions because we have now introduced an excel-style formula system which allows simple inline formulas on fields.
  • Use SrollableResultset if you have to trade with a high volume of data. In that case data will be fetched when needed instead of reading it fully and keeping it in memory.
  • In an Applet environment try to limit the size of your application by only keeping the necessary functionnalities because they have to be downloaded by the client.

// threads, webapps, classloader (for the boot)