http_parser icon indicating copy to clipboard operation
http_parser copied to clipboard

transformResponse take too long

Open nlgtuankiet opened this issue 2 years ago • 4 comments

Screenshot 2022-12-19 at 16 45 04

Due to JSON decode take 40.5ms on main isolate hence create a UI jank. Maybe we can move the decode function to a background isolate using the compute function?

nlgtuankiet avatar Dec 19 '22 09:12 nlgtuankiet

@nex3 any thoughts about this?

nlgtuankiet avatar Dec 20 '22 03:12 nlgtuankiet

Sorry, I no longer work on the Dart team

nex3 avatar Dec 20 '22 21:12 nex3

@kevmoo any thoughts about this?

nlgtuankiet avatar Dec 21 '22 02:12 nlgtuankiet

Look at pkg:dio? JsonDecoder.convert is synchronous. Guessing that should use a streaming parse to improve performance. I don't see http_parser in thi stack!

kevmoo avatar Dec 21 '22 02:12 kevmoo