N
N
Neonoviiwolf2019-09-14 12:59:21
Android
Neonoviiwolf, 2019-09-14 12:59:21

How to parse a large file in an application?

Kind
It is necessary to parse the 18mb json file on the phone itself. There are about ~ 200k records there, but when working, only ~ 11k records can be written to the database,
a lot of this writes


09-14 09:04:14.162 12195-12216/com.example.weather I/art: Alloc sticky concurrent mark sweep GC freed 0(0B) AllocSpace objects, 0(0B) LOS objects, 0% free, 212MB/214MB, paused 676us total 7.283ms
09-14 09:04:14.162 12195-12214/
com.example.weather weather I/art: Alloc sticky concurrent mark sweep GC freed 0(0B) AllocSpace objects, 0(0B) LOS objects, 0% free, 213MB/214MB, paused 986us total 6.369ms
09-14 09:04:15.103 12195-12208 /com.example.weather I/art: Background partial concurrent mark sweep GC freed 2078253(89MB) AllocSpace objects, 0(0B) LOS objects, 1% free, 213MB/217MB, paused 1.621ms total 932.769ms
09-14 09:04:15.103 12195-12216/com.example.weather I/art: WaitForGcToComplete blocked for 289.823ms for cause Alloc

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question