• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Reduce the render time

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


can any one help,

How can we reduce the response time(render time) of page containing the 30-40 richface components

Thanks in advance
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Consider not loading the page with 30-40 richfaces components.

In fact, consider not loading the page with so many components, period.

You can use reRender/AJAX to update the page selectively and that can help, but the initial page display is still going to be a major hit on the user's patience. Simplicity is a virtue.
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

sathish Tl wrote:
How can we reduce the response time(render time) of page containing the 30-40 richface components



Yes, rendering for 30-40 components could be slow but not that much. We have used lots of components in a single page.

  • You can try to figure out if it is really components, or the queries involved and taking time itself to provide data to JSF page.
  • You can see, if there are proper null checks added while filling values for the components specially if values are being populated by hitting database.
    This is the major factor, if methods calls again will hit unnecessarliy to database for the same value.



  •  
    Tim Holloway
    Saloon Keeper
    Posts: 27762
    196
    Android Eclipse IDE Tomcat Server Redhat Java Linux
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    30-40 components isn't really a lot if most of them are simple components (like datagrid). 30-40 complex components may be a different matter.

    But I had a single component (menu) that downloaded 3MB on each page refresh, so I had to address that. Firefox's network monitor is handy for stuff like that.
     
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    reply
      Bookmark Topic Watch Topic
    • New Topic