Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于加载地图运行时内存方面是否有优化的解决方案? #97

Open
CoderHln opened this issue May 17, 2019 · 3 comments
Open

Comments

@CoderHln
Copy link

我这边集成了echarts库之后,使用了地图模块的一个类型进行展示,但是这个控件加入到页面之后,内存狂飙100M左右,时间久了之后就会造成手机发烫。我run了一下demo发现demo中加载地图之后内存也是从50M升到了150M左右,并且加载地图数据,稍微有些慢,不知道作者有没有说相对简化的模式可供选择,或者进行一下内存优化。

@yyny1789
Copy link

yyny1789 commented Jun 4, 2019

有解决方案了吗?

@CoderHln
Copy link
Author

有解决方案了吗?

算是一种妥协方案,用WKEchartsView替换之前的类型
@Property (strong, nonatomic) WKEchartsView *yEchartView;

把类型改为WKEchartsView之后,APP内存会得到很大的节制,但是即使地图在webView中运行还是在耗费系统的资源,停留在当前页面时间久也会造成发热的现象,虽然在Xcode中已经监测不到内存飙升的情况了,但是实际上还有很大的系统资源消耗。

@yyny1789
Copy link

好的,多谢~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants