LinearListView icon indicating copy to clipboard operation
LinearListView copied to clipboard

效率问题

Open appledong opened this issue 10 years ago • 4 comments

批量加载数据的话会不会出现效率问题?

appledong avatar Jul 30 '15 02:07 appledong

Please rephrase your issue in English

frankiesardo avatar Jul 30 '15 06:07 frankiesardo

He said that bulk loading data will not be efficiency problem?

imliujun avatar Dec 05 '15 03:12 imliujun

I am observing efficiency problems when loading say 500 elements. This list is in one of 5 fragments, and when opening the fragment with this list, I see some serious memory allocations, as well as unresponsive (a second or two, depending on number of items) UI. I am using content providers to feed data, and it all works ok, when using a regular ListView.

miroslavign avatar Aug 23 '16 11:08 miroslavign

@frankiesardo correct me if I am wrong, but I guess, the LinearListView component doesn't recycle list-itemviews by design, as RecyclerView or ListView does. So it is bound to have performance issues with many list-items put into the adapter as those views are all created at instance-creation time.

ajans avatar Oct 24 '16 13:10 ajans