The invention discloses a system architecture that can improve the performance of mobile devices, including data model layer, processing view business logic layer and interface layer. Processing view business logic layer is used to process view logic between data model layer and interface layer, processing view business logic layer and interface layer automatic synchronization, processing view. The business logic layer calls the data model layer to implement the business function. When the data model level changes, the business logic layer of the processing view is notified. The invention reconstructs the front end project frame and divides the controller. The processing view business logic layer is used as a link bridge between the data model layer and the interface layer. Because the processing view business logic layer can synchronize with the interface layer automatically, the communication between the original architecture and the original architecture can be removed, the communication cost is saved and the memory consumption is reduced. Therefore, applications developed based on this architecture can be applied to low memory and low version terminal systems.
【技术实现步骤摘要】
能够改善移动设备性能的系统架构
本专利技术属于计算机系统性能改善
,具体涉及一种能够改善移动设备性能的系统架构。
技术介绍
在应用程序的使用中经常能够发现,同样的应用程序,在低内存低配置的移动设备环境上运行时会出现各种问题。例如在C568/android4.0/3G网络/512M内存的移动设备环境上运行应用程序时会出现异常闪退,程序无响应等问题,但在C568+/android4.4/4G网络/1G内存的移动设备环境上运行同样的程序却完全正常。经过反复的测试监测,发现原因是各层之间之间的数据传输过程消耗了过多内存。原有程序架构如图1所示,分为Model、Controller和View三部分,其中Model:是对应用状态和业务功能的封装,Model接受Controller的请求执行相应的业务功能,并在状态改变的时候通知View。View:实现可视化界面的呈现,捕捉最终用户的交互操作。View捕获到用户交互操作后会直接转发给Controller,由Controller完成相应的UI逻辑。如果需要涉及业务功能的调用,Controller会直接调用Model。在完成UI处理之后,Controller会根据需要控制原View或者创建新的View对用户交互操作予以响应。从消息交换模式的角度来讲,Model针对View的状态通知和View针对Controller的用户交互通知都是单向的。这样的传输机制需要占据不少传输时间和应用内存。
技术实现思路
为解决上述问题,本专利技术公开了一种能够改善移动设备性能的系统架构,重构前端项目框架,分离控制器。为了达到上述目的,本专利技 ...
【技术保护点】
1.能够改善移动设备性能的系统架构,包括数据模型层Model和界面层View,所述数据模型层Model封装有业务功能和校验逻辑,所述界面层View用于显示可视化界面、获得用户的操作数据、输出数据至可视化界面,其特征在于:还包括处理视图业务逻辑层ViewModel,所述处理视图业务逻辑层ViewModel连接在数据模型层Model和界面层之间用于处理视图逻辑,处理视图业务逻辑层ViewModel与界面层View自动同步,当界面层更新时处理视图业务逻辑层ViewModel自动同步更新,当处理视图业务逻辑层ViewModel更新时界面层View自动同步更新,处理视图业务逻辑层ViewModel调用数据模型Model层实现业务功能,所述数据模型层Model状态改变时通知处理视图业务逻辑层ViewModel。
【技术特征摘要】
1.能够改善移动设备性能的系统架构,包括数据模型层Model和界面层View,所述数据模型层Model封装有业务功能和校验逻辑,所述界面层View用于显示可视化界面、获得用户的操作数据、输出数据至可视化界面,其特征在于:还包括处理视图业务逻辑层ViewModel,所述处理视图业务逻辑层ViewModel连接在数据模型层Model和界面层之间用于处理视图逻辑,处理视图业务逻辑层ViewModel与界面层View自动同步,当界面层更新时处理视图业务逻辑层ViewModel自动同步更新,当处理视图业务...
【专利技术属性】
技术研发人员:李硕,陆骏,袁凤洋,
申请(专利权)人:北京中普达科技股份有限公司,
类型:发明
国别省市:北京,11
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。