Android Question list.size slowing down app

Kiran Raotole

Active Member
Licensed User
I have json file which contain nearly 37000 record

when I'm using :
B4X:
Dim list1 As List
list1 = json.NextArray

Dim exact_record As Int
exact_record = list1.Size
It slow down app.

this work fine :
B4X:
Dim exact_record As Int
exact_record = 38000

what i'm doing wrong?
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top