nmb1106
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:
lc.removeAll();
for (ForumPostPanel fpp : fpps) {
lc.add(fpp);
}
setHeading(thread.getBoardName() + " > " + thread.getTitle());
replyBtn.show();
refreshBtn.enable();
lc.layout();
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.
Thanks
Here is a little code snipet of where its causing the issue:
lc.removeAll();
for (ForumPostPanel fpp : fpps) {
lc.add(fpp);
}
setHeading(thread.getBoardName() + " > " + thread.getTitle());
replyBtn.show();
refreshBtn.enable();
lc.layout();
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.
Thanks