current position:Home>How to solve the loss caused by flutter's UI thread?

How to solve the loss caused by flutter's UI thread?

2022-05-15 03:20:43Alibaba cloud Q & A

Flutter Of ui How to solve the loss caused by threads ?

Take the answer 1:

Prefetch data in Native Side initiation , In the page routing structure Native VC/Activity when , Immediately launch mtop Equal request . mtop The returned data is preferred not to pass channel bridge Return to Flutter layer , But through ffi Mechanism for Flutter Direct reading . above native Data must be temporarily stored on the side , However, in order to avoid resource leakage caused by long-term reference , use LRU Policy cache data (iOS Out-of-service NSCache, Guess why ). Considering that some page data can be stored persistently , For next use , We construct a multi-level cache strategy . Componentize all the above capabilities , For reuse by other services .

copyright notice
author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you.

Random recommended