vfafou Well-Known Member Licensed User Longtime User Feb 2, 2017 #1 Hello! I'm filling a CustomListView while parsing a JSON string. The JSON items are ~1000 and the time to load and see the list is ~20 sec on a Huawei Honor 8, Android 6.0.1. Would UltimateListView be faster than CustomListView? I think it could be faster to load the list. Does anyone have a suggestion? Thank you in advance!
Hello! I'm filling a CustomListView while parsing a JSON string. The JSON items are ~1000 and the time to load and see the list is ~20 sec on a Huawei Honor 8, Android 6.0.1. Would UltimateListView be faster than CustomListView? I think it could be faster to load the list. Does anyone have a suggestion? Thank you in advance!
Erel B4X founder Staff member Licensed User Longtime User Feb 2, 2017 #2 ULV will probably be faster. This code takes 0.5 seconds: Code: Dim n As Long = DateTime.Now For i = 1 To 1000 clv1.AddTextItem("Aaaa", "a") Next Log(DateTime.Now - n) However if your items are made of many views then it will be slower. Make sure to test it in release mode. Upvote 0
ULV will probably be faster. This code takes 0.5 seconds: Code: Dim n As Long = DateTime.Now For i = 1 To 1000 clv1.AddTextItem("Aaaa", "a") Next Log(DateTime.Now - n) However if your items are made of many views then it will be slower. Make sure to test it in release mode.