Less than 42 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reduce the render time  RSS feed

 
sathish Tl
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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.
 
Rajneesh K Rajput
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • 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
    Bartender
    Posts: 18531
    61
    Android Eclipse IDE Linux
    • Mark post as helpful
    • send pies
    • 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.
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!