This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSF and the fly likes Reduce the render time Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Reduce the render time" Watch "Reduce the render time" New topic
Author

Reduce the render time

sathish Tl
Greenhorn

Joined: Sep 02, 2008
Posts: 7


can any one help,

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

Thanks in advance


Sathish TL
SCJP 5,SCWCD 5
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14487
    
    7

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Rajneesh K Rajput
Greenhorn

Joined: Nov 14, 2009
Posts: 10
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

    Joined: Jun 25, 2001
    Posts: 14487
        
        7

    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.
     
    I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
     
    subject: Reduce the render time
     
    Similar Threads
    Boosting download time
    Export ResultSet to pipe delimited file
    WA #1.....word association
    Performance enhancement of existing JSPs
    page render time