CN108241487A - The system architecture of mobile equipment performance can be improved - Google Patents
The system architecture of mobile equipment performance can be improved Download PDFInfo
- Publication number
- CN108241487A CN108241487A CN201611220728.0A CN201611220728A CN108241487A CN 108241487 A CN108241487 A CN 108241487A CN 201611220728 A CN201611220728 A CN 201611220728A CN 108241487 A CN108241487 A CN 108241487A
- Authority
- CN
- China
- Prior art keywords
- view
- business logic
- viewmodel
- boundary layer
- layer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a kind of system architectures that can improve mobile equipment performance, including data model layer, processing view Business Logic and boundary layer, processing view Business Logic is connected between data model layer and boundary layer to handle view logic, handle view Business Logic and boundary layer automatic synchronization, handling view Business Logic calls data model layer to realize business function, notifier processes view Business Logic when data model layer state changes.Present invention reconstruct front end project frame, separation control.Using processing view Business Logic as the link bridge between data model layer and boundary layer, since processing view Business Logic can realize automatic synchronization between boundary layer, eliminate in original framework and between a large amount of communications, save communication-cost, reduce memory consumption.Therefore, the application program based on the exploitation of this framework can be suitable for low memory, lowest version terminal system.
Description
Technical field
The invention belongs to computer system performance improving environment fields, and in particular to one kind can improve mobile equipment performance
System architecture.
Background technology
It is often able to find in the use of application program, same application program, be set in the movement of the low configuration of low memory
It will appear various problems during standby environmentally operation.Such as the mobile equipment in C568/android4.0/3G networks/512M memories
It will appear abnormal dodge when environmentally running application program to move back, the problems such as program is without response, but in C568+/android4.4/4G nets
It is but completely normal that same program is run on the mobile device environment of network/1G memories.It is monitored by test repeatedly, finds reason
Be between each layer between data transmission procedure consume excessive memory.
Original program architecture is as shown in Figure 1, be divided into Model, Controller and View three parts, wherein Model:It is pair
The encapsulation of application state and business function, the request that Model receives Controller perform corresponding business function, and in shape
State notifies View when change.View:It realizes the presentation of visualization interface, captures the interactive operation of end user.View is caught
Controller can be directly forwarded to after receiving user interactive operation, corresponding UI logics are completed by Controller.If it needs
It is related to the calling of business function, Controller can directly invoke Model.After UI processing is completed, Controller meetings
Original View is controlled as needed or creates new View, and user interactive operation is responded.From the angle of message exchange pattern
For, it is all unidirectional that Model interacts notice for the state notifying and View of View for the user of Controller.In this way
Transmission mechanism need to occupy many transmission times and application memory.
Invention content
To solve the above problems, the invention discloses a kind of system architecture that can improve mobile equipment performance, before reconstruct
End project frame, separation control.
In order to achieve the above object, the present invention provides following technical solution:
The system architecture of mobile equipment performance can be improved, including data model layer Model, processing view Business Logic
ViewModel and boundary layer View, the data model layer Model are packaged with business function and check logic, the boundary layer
View is used to show visualization interface, the operation data for obtaining user, outputs data to visualization interface, the processing view industry
Business logical layer ViewModel is connected between data model layer Model and boundary layer to handle view logic, handles view industry
Business logical layer ViewModel and boundary layer View automatic synchronizations handle view Business Logic when boundary layer updates
ViewModel automatic synchronizations update, and boundary layer View automatic synchronizations are more when handling view Business Logic ViewModel updates
Newly, processing view Business Logic ViewModel calls Model layers of realization business function of data model, the data model layer
Notifier processes view Business Logic ViewModel when Model states change.
Further, the attribute in the processing view Business Logic ViewModel can be supervised by boundary layer View
Control.
Further, the attribute in the processing view Business Logic ViewModel realizes observable interfaces.
Compared with prior art, the invention has the advantages that and advantageous effect:
Using processing view Business Logic ViewModel as the link between data model layer Model and boundary layer View
Bridge since processing view Business Logic ViewModel can realize automatic synchronization between boundary layer View, eliminates original
There are a large amount of communications between Controller in framework, save communication-cost, reduce memory consumption.Therefore, based on this framework
The application program of exploitation can be suitable for low memory, lowest version terminal system.
Description of the drawings
Fig. 1 is original Organization Chart in the prior art.
Fig. 2 is the system architecture diagram provided by the invention that can improve mobile equipment performance.
Specific embodiment
Technical solution provided by the invention is described in detail below with reference to specific embodiment, it should be understood that following specific
Embodiment is only illustrative of the invention and is not intended to limit the scope of the invention.
As shown in Fig. 2, the system architecture provided by the invention that mobile equipment performance can be improved, including data model layer
Model, processing view Business Logic ViewModel and boundary layer View.Wherein data model layer Model is packaged with business work(
Energy(Service logic)And check logic, there is data communication with ViewModel.Boundary layer View is used to be handed over terminal user
Mutually, be embodied in display visualization interface, obtain user operation data, output data to visualization interface.Handle view
Business Logic ViewModel is connected between data model layer Model and boundary layer to handle view logic.
One ViewModel matches with a View, and ViewModel and View binds realization automatic synchronization completely, when
ViewModel automatic synchronizations update when View updates, and the modification variation in all View can all automatically update ViewModel
In.Likewise, the View automatic synchronizations update when ViewModel updates, therefore any variation of ViewModel also can be automatically same
It walks and is shown on View.In the present invention, the attribute in ViewModel realizes observable interfaces, therefore can be by
View is monitored.After View has user's input, ViewModel notices Model updates the data realization business function, works as Model
After data update, ViewModel notice View synchronized updates.
After being improved based on above-mentioned framework, application program can be normally in C568/android4.0/3G networks/512M
It is behaved on the mobile device environment deposited, and operates smooth, no interim card.
The technical means disclosed in the embodiments of the present invention is not limited only to the technological means disclosed in the above embodiment, further includes
By more than technical characteristic arbitrarily the formed technical solution of combination.It should be pointed out that for those skilled in the art
For, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as
Protection scope of the present invention.
Claims (3)
1. the system architecture of mobile equipment performance can be improved, including data model layer Model and boundary layer View, the data
Model layer Model is packaged with business function and check logic, and the boundary layer View is used to show visualization interface, obtains user
Operation data, output data to visualization interface, it is characterised in that:Processing view Business Logic ViewModel is further included,
The processing view Business Logic ViewModel is connected between data model layer Model and boundary layer to handle view
Logic, processing view Business Logic ViewModel and boundary layer View automatic synchronizations handle view industry when boundary layer updates
Be engaged in the update of logical layer ViewModel automatic synchronizations, when handling view Business Logic ViewModel updates boundary layer View from
Dynamic synchronized update, processing view Business Logic ViewModel call Model layers of realization business function of data model, the number
Notifier processes view Business Logic ViewModel when changing according to model layer Model states.
2. the system architecture according to claim 1 that mobile equipment performance can be improved, it is characterised in that:The processing regards
Attribute in figure Business Logic ViewModel can be monitored by boundary layer View.
3. the system architecture according to claim 2 that mobile equipment performance can be improved, it is characterised in that:The processing regards
Attribute in figure Business Logic ViewModel realizes observable interfaces.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611220728.0A CN108241487A (en) | 2016-12-26 | 2016-12-26 | The system architecture of mobile equipment performance can be improved |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611220728.0A CN108241487A (en) | 2016-12-26 | 2016-12-26 | The system architecture of mobile equipment performance can be improved |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108241487A true CN108241487A (en) | 2018-07-03 |
Family
ID=62701874
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611220728.0A Pending CN108241487A (en) | 2016-12-26 | 2016-12-26 | The system architecture of mobile equipment performance can be improved |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108241487A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111796577A (en) * | 2020-06-29 | 2020-10-20 | 中国第一汽车股份有限公司 | Data instruction processing method and device, vehicle and storage medium |
CN112860454A (en) * | 2021-02-05 | 2021-05-28 | 百果园技术(新加坡)有限公司 | Service processing system and method |
-
2016
- 2016-12-26 CN CN201611220728.0A patent/CN108241487A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111796577A (en) * | 2020-06-29 | 2020-10-20 | 中国第一汽车股份有限公司 | Data instruction processing method and device, vehicle and storage medium |
CN112860454A (en) * | 2021-02-05 | 2021-05-28 | 百果园技术(新加坡)有限公司 | Service processing system and method |
CN112860454B (en) * | 2021-02-05 | 2024-04-19 | 百果园技术(新加坡)有限公司 | Service processing system and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110324800A (en) | A kind of method of policy control, network element and system | |
CN102014021A (en) | Method and device for controlling connection/disconnection of data link | |
CN103139039A (en) | Virtual network capable of achieving flow isolation control and construction method | |
CN107977254B (en) | Method for responding to request in cloud data system and computer-readable storage medium | |
CN104734915A (en) | Composite multiprocess and multithread multi-network concurrence dynamic simulation method | |
CN103152210B (en) | Repair method and the stack equipment of Spanning-Tree Protocol forwarding state exception | |
CN112416969B (en) | Parallel task scheduling system in distributed database | |
CN109673061A (en) | A kind of method and apparatus of PDU Dialog processing | |
CN108540568A (en) | Computing capability sharing method and smart machine | |
CN109471626A (en) | Page logic structure, page generation method, page data processing method and device | |
CN108512782A (en) | Accesses control list is grouped method of adjustment, the network equipment and system | |
US20180253313A1 (en) | Operation instruction response control method and terminal for human-machine interface | |
CN102377880A (en) | Mobile phone and power saving method thereof | |
CN104991811A (en) | Process running state adjusting method in isolation system switching period and intelligent terminal | |
CN106341373A (en) | Method and apparatus for detecting and preventing malicious clicks on advertisement links | |
CN104486389A (en) | Communication channel establishing method and system between window management services and APP (Application) | |
CN106162507A (en) | A kind of virtualize the flexible management method of network function and device | |
CN105022627A (en) | Communication method among Views in Android system | |
CN113326083A (en) | State machine processing method, state processing device, electronic equipment and storage medium | |
CN108241487A (en) | The system architecture of mobile equipment performance can be improved | |
CN108632049A (en) | Method and apparatus for virtual network function dilatation | |
CN107153495A (en) | A kind of method and apparatus for setting up service link between network element | |
CN104410511A (en) | Server management method and system | |
CN107579850B (en) | Wired and wireless hybrid networking method based on SDN control for cloud data center | |
CN110096332A (en) | A kind of moving method and system towards base station task |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180703 |