clientside / amplesdk

Ample SDK - JavaScript UI Framework
Other
170 stars 29 forks source link

xul:listbox performance #7

Open r-moeritz opened 13 years ago

r-moeritz commented 13 years ago

xul:listbox is a useful control but performance is disastrous when loading large numbers of records (>3000 in my case). The browser becomes unresponsive when attempting to scroll the listbox or sort a column. I have had to switch to jqGrid for better performance.

ilinsky commented 13 years ago

True, it would not perform well with such amounts of data. My personal take on that: I think it doesn't make sense to try and draw 3000 records because only 20-50 can be viewed by user and the reset would anyway go off-screen (Also, what if you had 300000 records - would you try to draw all of them too? Even pure HTML would not be able to do, but this is again useless - noone is interested in viewing this amount). So either have pagination for huge amounts of data or request for "live" scrolling - yes, this is a nice option!