View Full Version : Performance Question

20 Oct 2010, 4:10 AM
I investigate in developing an application which polls every 10 seconds data from a server and displays it in a list (with up to 50 entries) or in several (let's say upt o 50) buttons (not decided yet). Every time I get a serverresponse, some data might have changed.
- Is it better to redraw all the elements (complete list/several buttons) (removeAll and draw all new) or
- to look which items have to be changed, removed and added.

Of course the second way would cause in much more complicated java-script-functions, why I would love to avoid it. :)

9 Nov 2010, 3:21 AM
I'm not sure what your goal is.
If you just want to do some simple operations on those results. Why not make a grid with handlers for cell clicks and icons to show up like buttons. You can reload a grid or use id's to let the grid update itself which is rendering wise much quicker then constantly destroying elements and redrawing them.