View Full Version : Alternate to LayoutContainer? Layout() really slow

27 Mar 2012, 7:54 PM
I'm writing a custom forum widget. In this particular code I've already taken the list of posts for this thread and built them each to my own custom panels.

Here is a little code snipet of where its causing the issue:


for (ForumPostPanel fpp : fpps) {
setHeading(thread.getBoardName() + " > " + thread.getTitle());

The this is rendering so slow and I'm not sure how to get around it. I created a new date on each side of the lc.layout() call and checked the difference. It takes <0.2 seconds to get to that point from rpc call to get the thread posts, its taking about .5 seconds per post once it calls layout(). So for a thread with 10 posts its taking me over 5 seconds to load...as you can imagine forums get bigger than that.

Is there something I could use instead of a LayoutContainer?

Any tips would be appreciated.


30 Mar 2012, 6:53 AM
Still having issues with this, any advice?

30 Mar 2012, 11:58 PM
can you post fully your code, I couldn't understand why layout is slow.

Normally it must be fast. I used it milllions times.