CN108829469A - A kind of application program page methods of exhibiting and device - Google Patents

A kind of application program page methods of exhibiting and device Download PDF

Info

Publication number
CN108829469A
CN108829469A CN201810350669.1A CN201810350669A CN108829469A CN 108829469 A CN108829469 A CN 108829469A CN 201810350669 A CN201810350669 A CN 201810350669A CN 108829469 A CN108829469 A CN 108829469A
Authority
CN
China
Prior art keywords
configuration file
service logic
logic
priority
page
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.)
Granted
Application number
CN201810350669.1A
Other languages
Chinese (zh)
Other versions
CN108829469B (en
Inventor
赵开元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201810350669.1A priority Critical patent/CN108829469B/en
Publication of CN108829469A publication Critical patent/CN108829469A/en
Application granted granted Critical
Publication of CN108829469B publication Critical patent/CN108829469B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked
    • G06F9/4818Priority circuits therefor

Abstract

The present invention provides a kind of application program page methods of exhibiting and devices, belong to field of terminal technology.The method includes:Receive the enabled instruction of application program;Read preset priority configuration file, wherein the priority configuration file includes the execution priority of each service logic;According to the priority configuration file, corresponding delay duration is distributed for each service logic;It shows the application program page, executes the corresponding service logic according to each delay duration.The present invention is by being arranged different execution priorities for the different business logic of the application program page, form different priority orders, in displayed page, successively execute the service logic of each different priorities, to ensure that the high service logic of priority preferentially executes, the low service logic of priority successively postpones to execute, and avoids resource occupation and unordered caused by service logic executes parallel, improves the fluency that page load is shown.

Description

A kind of application program page methods of exhibiting and device
Technical field
The invention belongs to field of terminal technology, more particularly to a kind of application program page methods of exhibiting and device.
Background technique
With the progress of mobile application technology, the function in all kinds of App is no longer single, more and more abundant, such as It is integrated with shopping in social activity chat App, listens to music, see the functions such as video.
However, function increases to will lead to apply and loads more contents in use process in App, it is a large amount of terminal to be consumed CPU or I/O resource, the Caton for causing the App page to load, especially during startup, loading content is more when initialization, page Face Caton is more significant, and the use interest and experience sense for reducing user are by causing the loss of user volume.
Summary of the invention
The present invention provides a kind of application program page methods of exhibiting and device, to solve page card in App use process The problem of pausing.
According to the present invention in a first aspect, providing a kind of application program page methods of exhibiting, this method includes:
Receive the enabled instruction of application program;
Read preset priority configuration file, wherein the priority configuration file includes holding for each service logic Row major grade;
According to the priority configuration file, corresponding delay duration is distributed for each service logic;
It shows the application program page, executes the corresponding service logic according to each delay duration.
Optionally, the displaying application program page executes the corresponding business according to each delay duration and patrols Volume, including:
The interface provided by application program, executes the base page logic other than the service logic with loading page;
After page load is shown, the corresponding service logic is executed according to each delay duration.
Optionally, described to execute the corresponding service logic according to each delay duration, including:
The corresponding thread in the application page face executes each business function according to each delay duration, wherein The corresponding delay duration of one business function, the corresponding service logic of each business function single expression, the business Logic is located in the Presenter of MVP mode construction.
Optionally, described to execute the corresponding service logic according to each delay duration, including:
Foreground, which is executed, according to the delay duration in application program main thread executes logic;
Backstage, which is executed, according to the delay duration in back-stage management thread executes logic;
Wherein, the foreground executes logic and the backstage executes logic and divides for what is carried out in advance to the service logic Class.
Optionally, the method also includes:
Dynamic updates the priority configuration file;
According to the updated priority configuration file, the execution priority of the service logic is adjusted.
Optionally, the dynamic adjusts the execution priority of the service logic, including:
The execution time of each service logic of statistical collection and the reality of the corresponding business of each service logic Border application time;
Calculate the time difference for executing time and the practical application time;
The time difference is uploaded into background server;
Dynamic configuration file is generated according to the time difference, wherein the dynamic configuration file is generated by background server, The dynamic configuration file, which includes that each service logic is corresponding, executes delay, and the execution delay characterizes each industry The execution priority for logic of being engaged in;
Receive the dynamic configuration file;
The priority configuration file is replaced with into the dynamic configuration file;Or
By the priority configuration file and the dynamic configuration file mergences.
Second aspect according to the present invention, provides a kind of application program page displaying device, and described device includes:
Command reception module, for receiving the enabled instruction of application program;
Configuration file read module, for reading preset priority configuration file, wherein the priority configuration file Execution priority including each service logic;
Delay distribution module, for being distributed for each service logic corresponding according to the priority configuration file Delay duration;
Page presentation module executes corresponding described for showing the application program page according to each delay duration Service logic.
Optionally, the page presentation module includes:
First logic execution module, the interface for being provided by application program, executes the base other than the service logic This page logic is with loading page;
Second logic execution module, for being executed according to each delay duration corresponding after page load is shown The service logic.
Optionally, the second logic execution module, including:
Function implementation sub-module is executed for the corresponding thread in the application page face according to each delay duration Each business function, wherein the corresponding delay duration of a business function, each business function single expression are corresponding Service logic, the service logic are located in the Presenter of MVP mode construction.
Optionally, the second logic execution module, including:
Main thread module executes logic for executing foreground according to the delay duration in application program main thread;
Back-stage management threading models are patrolled for executing backstage execution according to the delay duration in back-stage management thread Volume;
Wherein, the foreground executes logic and the backstage executes logic and divides for what is carried out in advance to the service logic Class.
Optionally, described device further includes:
Priority configuration file update module, for dynamically updating the priority configuration file;
Dynamic adjustment module, according to the updated priority configuration file, the execution for adjusting the service logic is excellent First grade.
Optionally, the priority configuration file update module, including:
Statistical collection submodule, execution time and each industry for each service logic of statistical collection The practical application time of the corresponding business of logic of being engaged in;
Computational submodule, for calculating the time difference for executing time and the practical application time;
Submodule is uploaded, for the time difference to be uploaded to background server;
Generate submodule, for according to the time difference generate dynamic configuration file, wherein the dynamic configuration file by Background server generates, and the dynamic configuration file, which includes that each service logic is corresponding, executes delay, and the execution is prolonged When characterize the execution priority of each service logic;
Receiving submodule, for receiving the dynamic configuration file;
Submodule is replaced, for the priority configuration file to be replaced with the dynamic configuration file;Or
Merge submodule, is used for the priority configuration file and the dynamic configuration file mergences.
For first technology, the present invention has following advantage:
Application program page methods of exhibiting and device provided by the invention, by being patrolled for the different business of the application program page The different execution priority of setting is collected, the priority orders that different business logic executes are formed, in displayed page, according to delay Duration successively executes the service logic of each different priorities, thus ensure that the high service logic of priority preferentially executes, it is excellent The low service logic of first grade successively postpones to execute, and avoids resource occupation caused by service logic executes parallel and unordered, raising The fluency that page load is shown.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is the flow chart for the application program page methods of exhibiting that the embodiment of the present invention one provides;
Fig. 2 is the flow chart of application program page methods of exhibiting provided by Embodiment 2 of the present invention;
Fig. 3 is the module map that the application program page that the embodiment of the present invention three provides shows device;
Fig. 4 is the module map that the application program page that the embodiment of the present invention four provides shows device.
Specific embodiment
The exemplary embodiment that the present invention will be described in more detail below with reference to accompanying drawings.Although showing the present invention in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the present invention without should be by embodiments set forth here It is limited.It is to be able to thoroughly understand the present invention on the contrary, providing these embodiments, and can be by the scope of the present invention It is fully disclosed to those skilled in the art.
Embodiment one
Fig. 1 is a kind of step flow chart for application program page methods of exhibiting that the embodiment of the present invention one provides, and is applied to Mobile terminal, as shown in Figure 1, this method may include:
Step 101, the enabled instruction for receiving application program.
Enabled instruction in the embodiment of the present invention can be the user monitored and the click of destination application started Behavior is also possible to calling behavior of the other applications monitored to destination application, such as:User is using video Shopping App is started by clicking advertisement link calling when App.It also include the solution of priority configuration file in the enabled instruction Store path information after pressure installation, thus, when user uses App, by the enabled instruction, application program can be according to storage Routing information access privileges configuration file.
Step 102 reads preset priority configuration file, wherein the priority configuration file includes each business The execution priority of logic.
In the embodiment of the present invention, after receiving enabled instruction, application program starts to be gone to read according to enabled instruction pre- The priority configuration file set, the priority configuration file include the execution priority of each service logic.Developer is preparatory According to the importance of different business logic height, corresponding execution priority is distributed for each service logic, forms configuration file, It is packaged in the installation kit of application program.Specifically, having referred at least to base page logical AND industry during page presentation Business logic, base page logic refer to the programmed logic of responsible page basic framework and element load, and service logic refers to and uses The closely related programmed logic of the business of family operation (such as:During user uses video App viewing video, video is judged Whether there is the behaviors such as the video resource needed, load video resource in library is service logic, and the calling of page component The behaviors such as load are exactly the base page logic except service logic).
When distributing corresponding execution priority for each service logic, following tactful configuration preference level can refer to:For red Point mark reminder announced logic be believed that it is important, for its distribute the first priority;Skin packet expression packet downloads logic weight The property wanted is weaker, distributes the second priority for it.Another priority configuration strategy is:User is patrolled accordingly using record is played Collecting may be relatively more early, relatively important, so needing to be immediately performed after webpage representation, to prompt user to continue to watch in time Video can distribute the first priority for it;For uploading the corresponding logics of information such as crash log, because user's perception is less than again Compare and occupy network and IO, importance is weaker, can distribute the second priority for it.According to above-mentioned example, patrolled according to each business The importance height collected is that the high service logic of importance distributes high priority, distributes for the low service logic of importance low excellent First grade, the height of certain each service logic importance, the use of specific requirements and user by manufacturer based on page presentation The comprehensive descisions such as experience, the present invention are without limitation.
Step 103, according to the priority configuration file, distribute corresponding delay duration for each service logic.
It, can due to including the execution priority of each service logic in priority configuration file in the embodiment of the present invention Height according to the respective execution priority of each service logic is that it distributes corresponding delay duration.Such as:The weight of service logic A The property wanted highest, execution priority are the first priority is not delayed, is immediately performed then distributing the delay duration of 0s for it; The importance of service logic B is higher, and execution priority is the second priority is prolonged then distributing the delay duration of 2s for it When 2s execute, the corresponding delay of each service logic distribution is followed successively by, so that subsequent can successively hold according to importance height order The each service logic of row avoids service logic from executing caused resource occupation and unordered parallel.
Step 104 shows the application program page, executes the corresponding service logic according to each delay duration.
In the embodiment of the present invention, according to priority configuration file, after being assigned with delay duration for each service logic, lead to Most basic logic relevant to page UI in executing application is crossed, the preliminary page for showing application program, then according to phase The delay duration answered executes corresponding service logic one by one, to guarantee the order that service logic executes, reduces the load of CPU With the occupancy of IO, the fluency that page load is shown is improved.
In conclusion the application program page methods of exhibiting that the embodiment of the present invention one provides, by for the application program page Different business logic different execution priorities is set, form the priority orders that different business logic executes, showing page When face, the service logic of each different priorities is successively executed according to delay duration, to guarantee the high service logic of priority Preferential to execute, the low service logic of priority successively postpones to execute, avoid service logic executes parallel caused resource occupation and It is unordered, improve the fluency that page load is shown.
Embodiment two
Fig. 2 is the step flow chart of another application program page methods of exhibiting provided by Embodiment 2 of the present invention, application In mobile terminal, as shown in Fig. 2, this method may include:
Step 201, the enabled instruction for receiving application program.
Enabled instruction in the embodiment of the present invention can be the user monitored and the click of destination application started Behavior is also possible to calling behavior of the other applications monitored to destination application, such as:User is using video Shopping App is started by clicking advertisement link calling when App.It also include the solution of priority configuration file in the enabled instruction Store path information after pressure installation, thus, when user uses App, by the enabled instruction, application program can be according to storage Routing information access privileges configuration file.
Step 202 reads preset priority configuration file, wherein the priority configuration file includes each business The execution priority of logic.
In the embodiment of the present invention, after receiving enabled instruction, application program starts to be gone to read according to enabled instruction pre- The priority configuration file set, the priority configuration file include the execution priority of each service logic.Developer is preparatory According to the importance of different business logic height, corresponding execution priority is distributed for each service logic, forms configuration file, It is packaged in the installation kit of application program.Specifically, having referred at least to base page logical AND industry during page presentation Business logic, base page logic refer to the programmed logic of responsible page basic framework and element load, and service logic refers to and uses The closely related programmed logic of the business of family operation (such as:During user uses video App viewing video, video is judged Whether there is the behaviors such as the video resource needed, load video resource in library is service logic, and the calling of page component The behaviors such as load are exactly the base page logic except service logic).
When distributing corresponding execution priority for each service logic, following tactful configuration preference level can refer to:For red Point mark reminder announced logic be believed that it is important, for its distribute the first priority;Skin packet expression packet downloads logic weight The property wanted is weaker, distributes the second priority for it.Another priority configuration strategy is:User is patrolled accordingly using record is played Collecting may be relatively more early, relatively important, so needing to be immediately performed after webpage representation, to prompt user to continue to watch in time Video can distribute the first priority for it;For uploading the corresponding logics of information such as crash log, because user's perception is less than again Compare and occupy network and IO, importance is weaker, can distribute the second priority for it.According to above-mentioned example, patrolled according to each business The importance height collected is that the high service logic of importance distributes high priority, distributes for the low service logic of importance low excellent First grade, the height of certain each service logic importance, the use of specific requirements and user by manufacturer based on page presentation The comprehensive descisions such as experience, the present invention are without limitation.
Step 203, according to the priority configuration file, distribute corresponding delay duration for each service logic.
It, can due to including the execution priority of each service logic in priority configuration file in the embodiment of the present invention Height according to the respective execution priority of each service logic is that it distributes corresponding delay duration.Such as:The weight of service logic A The property wanted highest, execution priority are the first priority is not delayed, is immediately performed then distributing the delay duration of 0s for it; The importance of service logic B is higher, and execution priority is the second priority is prolonged then distributing the delay duration of 2s for it When 2s execute, the corresponding delay of each service logic distribution is followed successively by, so that subsequent can successively hold according to importance height order The each service logic of row avoids service logic from executing caused resource occupation and unordered parallel.
Step 204, the interface provided by application program, execute the base page logic other than the service logic to add Carry the page.
In the embodiment of the present invention, application program itself is provided with data communication interface abundant, such as by shielding page with head The relevant interface in face executes the base page logic other than service logic to read the moneys such as the indispensable UI element of invoking page display Source, to realize the preliminary load of the page, preliminary displayed page.
Step 205, after page load is shown, execute the corresponding service logic according to each delay duration.
After performing other logics preliminary loaded and displayed page, then according to it is aforementioned for each service logic distribution Delay duration successively executes corresponding each service logic.Such as:The delay duration of service logic A, B, C, D be respectively 0s, 2s, 4s, 6s execute service logic A while page presentation then on the basis of the time of page presentation, execute industry after the 2s that is delayed Be engaged in logic B, executes service logic C after the 4s that is delayed, and executes service logic D after the 6s that is delayed.Specifically, it is real to can refer to following formats Now to the calling of each service logic:
Wherein, " ... .. " expression will call the corresponding business function of each service logic of execution, each business function It is successively executed according to certain delay duration.Certainly, the delay duration of the present embodiment is only as an example, the present invention is to set by reality The delay duration set is with no restrictions.
Specific implementation for step 205, if step 2051 or step 2052 are to as described in step 2053.
Step 2051, the corresponding thread in the application page face execute each business letter according to each delay duration Number, wherein the corresponding delay duration of business function, the corresponding service logic of each business function single expression, The service logic is located in the Presenter of MVP mode construction.
In the embodiment of the present invention, based on MVP mode (Model-View-Presenter, Model, the reading of local data, Storage, network, the relevant operation such as database;The displaying of View, UI, the update at the interface of UI, the acquisition for input of registering one's residence; Presenter, service logic are put here, and View and Model is dispatched, and go to realize service logic) service logic is pulled out in advance It is uniformly placed in Presenter, each service logic in application program is by corresponding business function single expression, i.e. industry Business function is all located in Presenter, and the independence between business function ensures the mutual weak rigidity of service logic, helps In individually distributing corresponding delay duration for each service logic, it is more convenient the calling management of service logic.By in application program The corresponding thread of the page executes each business function according to each delay duration, realizes the orderly execution of each service logic, mentions Rise the fluency of page load.
Step 2052, in application program main thread according to the delay duration execute foreground execute logic;
Step 2053, in back-stage management thread according to the delay duration execute backstage execute logic;
Wherein, the foreground executes logic and the backstage executes logic and divides for what is carried out in advance to the service logic Class.
In the embodiment of the present invention, application program itself is the operating mode of multithreading operation, at least has application program Main thread and back-stage management thread execute foreground according to delay duration by application program main thread and execute logic, pass through backstage It manages thread and executes backstage execution logic according to delay duration.Wherein foreground executes logic and backstage executes logic to patrol business Collect the classification carried out in advance.It mainly includes the logic that UI is communicated and needed to avoid multithreading confusion problem that foreground, which executes logic, Background logic includes the asynchronous operations logics such as I/O operation, network operation, and logic especially relevant to IO needs to manage by backstage Lineation journey executes.So that logical AND backstage execution logic is executed by the way that service logic is divided into foreground, respectively by difference Thread management execute, avoid interfering with each other in service logic implementation procedure.
Step 206 dynamically updates the priority configuration file.
It, after step 205 can also be dynamic according to the data that all previous page presentation process is accumulated in the embodiment of the present invention Preset priority configuration file is updated to state, further to optimize the execution precedence of each service logic, promotes page Face loaded and displayed efficiency.The strategy of update is as described in step 2061 to step 2065.
Step 2061, the execution time of each service logic of statistical collection and each service logic are corresponding Business the practical application time;
Step 2062 calculates the time difference for executing time and the practical application time;
The time difference is uploaded to background server by step 2063;
Step 2064 generates dynamic configuration file according to the time difference, wherein the dynamic configuration file by taking from the background Business device generates, and the dynamic configuration file, which includes that each service logic is corresponding, executes delay, the execution delay characterization The execution priority of each service logic;
Step 2065 receives the dynamic configuration file;
The priority configuration file is replaced with the dynamic configuration file by step 2066;Or
Step 2067, by the priority configuration file and the dynamic configuration file mergences.
Service logic corresponding to each specific business has corresponding execution time and practical application time, such as:? In video App, user needs to deliver feelings packet in barrage, and the time of downloading expression packet is the execution time of the service logic, uses Family use expression packet time be the service logic the practical application time, the execution time of each service logic and practical application Time might not be identical, and other service logics are same.Therefore when the execution of each service logic of statistical collection Between and its corresponding business the practical application time, calculate the time difference between the two, can accurately know holding for each service logic The row time difference.By the way that the time difference is uploaded to the corresponding background server of App, new dynamic configuration is generated in background server File, the dynamic configuration file, according to the order of the time difference from short to long is executed, were followed successively by each based on the execution time difference uploaded The configuration for the delay duration that a service logic is redistributed, the execution which is equally used to characterize each service logic are excellent First grade.When reusing App, terminal can receive the dynamic configuration file, directly be covered using dynamic configuration file replacement Lid falls original preset priority configuration file, or the two is merged and is used in combination.It certainly, can in the two merging combined use Consider the difference of two file importances, certain weight proportion is assigned for two, so that the new priority obtained is calculated, for Merge and which kind of algorithmic rule specifically used in use, the present invention is without limitation.
Step 207, according to the updated priority configuration file, adjust the execution priority of the service logic.
Dynamic configuration file is either replaced still to merge using dynamic configuration file, is being applied to dynamic configuration text When part, original preset priority configuration file just has occurred that update, and execution that can be new according to included in it is prolonged When, that redistributes each service logic executes delay, is adjusted to the execution priority of service logic, to optimize each industry The execution order for logic of being engaged in promotes the page and loads fluency.
In conclusion application program page methods of exhibiting provided by Embodiment 2 of the present invention, it can be based on different threads Foreground and backstage are executed respectively and executes logic, and accumulate the when difference for the service logic that the page loads in application program use process According to pre-set changeless execution priority progress, dynamically adjustment updates, and ensure that each service logic executed Relative independentability avoids the interference confusion that multithreading executes service logic, improves the fluency that page load is shown.
Embodiment three
Fig. 3 is the block diagram that a kind of application program page that the embodiment of the present invention three provides shows device, as shown in figure 3, should Device may include:
Command reception module 301, for receiving the enabled instruction of application program;
Configuration file read module 302, for reading preset priority configuration file, wherein the priority configuration File includes the execution priority of each service logic;
Delay distribution module 303, for being corresponded to for each service logic distribution according to the priority configuration file Delay duration;
Page presentation module 304 executes corresponding institute according to each delay duration for showing the application program page State service logic.
In conclusion the application program page that the embodiment of the present invention three provides shows device, by for the application program page Different business logic different execution priorities is set, form the priority orders that different business logic executes, showing page When face, the service logic of each different priorities is successively executed according to delay duration, to guarantee the high service logic of priority Preferential to execute, the low service logic of priority successively postpones to execute, avoid service logic executes parallel caused resource occupation and It is unordered, improve the fluency that page load is shown.
Example IV
Fig. 4 is the block diagram that a kind of application program page that the embodiment of the present invention four provides shows device, as shown in figure 4, should Device may include:
Command reception module 401, for receiving the enabled instruction of application program;
Configuration file read module 402, for reading preset priority configuration file, wherein the priority configuration File includes the execution priority of each service logic;
Delay distribution module 403, for being corresponded to for each service logic distribution according to the priority configuration file Delay duration;
First logic execution module 404, the interface for being provided by application program, executes other than the service logic Base page logic is with loading page;
Second logic execution module 405, for executing correspondence according to each delay duration after page load is shown The service logic.
Optionally, above-mentioned second logic execution module 405 may include:
Function implementation sub-module 4051, for the corresponding thread in the application page face according to each delay duration Execute each business function, wherein the corresponding delay duration of a business function, each business function single expression pair The service logic answered, the service logic are located in the Presenter of MVP mode construction.Or
Main thread module 4052 is patrolled for executing foreground execution according to the delay duration in application program main thread Volume;
Back-stage management threading models 4053 are executed for executing backstage according to the delay duration in back-stage management thread Logic;
Wherein, the foreground executes logic and the backstage executes logic and divides for what is carried out in advance to the service logic Class.
Optionally, above-mentioned apparatus further includes:
Priority configuration file update module 406, for dynamically updating the priority configuration file;
Dynamic adjustment module 407 adjusts the execution of the service logic according to the updated priority configuration file Priority.
Optionally, above-mentioned priority configuration file update module 406, including:
Statistical collection submodule 4061, execution time and each institute for each service logic of statistical collection State the practical application time of the corresponding business of service logic;
Computational submodule 4062, for calculating the time difference for executing time and the practical application time;
Submodule 4063 is uploaded, for the time difference to be uploaded to background server;
Submodule 4064 is generated, for generating dynamic configuration file according to the time difference, wherein the dynamic configuration text Part is generated by background server, and the dynamic configuration file, which includes that each service logic is corresponding, executes delay, described to hold Line delay characterizes the execution priority of each service logic;
Receiving submodule 4065, for receiving the dynamic configuration file;
Submodule 4066 is replaced, for the priority configuration file to be replaced with the dynamic configuration file;Or
Merge submodule 4067, is used for the priority configuration file and the dynamic configuration file mergences.
In conclusion the application program page that the embodiment of the present invention four provides shows device, main thread module and backstage are managed Reason threading models can execute foreground and backstage respectively and execute logic, and priority configuration file update module can be accumulated using journey The time difference data for the service logic that the page loads in sequence use process carries out pre-set changeless execution priority Dynamic adjustment updates, and ensure that the relative independentability that each service logic executes, and avoids multithreading and executes the dry of service logic Confusion is disturbed, the fluency that page load is shown is improved.For above-mentioned apparatus embodiment, due to itself and embodiment of the method base This is similar, so being described relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It would have readily occurred to a person skilled in the art that be:Any combination application of above-mentioned each embodiment is all feasible, therefore Any combination between above-mentioned each embodiment is all embodiment of the present invention, but this specification exists as space is limited, This is not just detailed one by one.
Provided herein application program page methods of exhibiting not with any certain computer, virtual system or other equipment It is intrinsic related.Various general-purpose systems can also be used together with teachings based herein.As described above, construction has this Structure required by the system of scheme of the invention is obvious.In addition, the present invention is also not directed to any particular programming language.It answers When understanding, it can use various programming languages and realize summary of the invention described herein, and language-specific is done above Description be in order to disclose the best mode of carrying out the invention.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the present invention and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention:It is i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, such as right As claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool Thus claims of body embodiment are expressly incorporated in the specific embodiment, wherein each claim conduct itself Separate embodiments of the invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) are realized in application program page methods of exhibiting according to an embodiment of the present invention Some or all components some or all functions.The present invention is also implemented as executing side as described herein Some or all device or device programs (for example, computer program and computer program product) of method.It is such It realizes that program of the invention can store on a computer-readable medium, or can have the shape of one or more signal Formula.Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or with any other shape Formula provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.

Claims (12)

1. a kind of application program page methods of exhibiting, which is characterized in that the method includes:
Receive the enabled instruction of application program;
Read preset priority configuration file, wherein the priority configuration file includes that the execution of each service logic is excellent First grade;
According to the priority configuration file, corresponding delay duration is distributed for each service logic;
It shows the application program page, executes the corresponding service logic according to each delay duration.
2. the method according to claim 1, wherein the displaying application program page, described prolong according to each Shi Shichang executes the corresponding service logic, including:
The interface provided by application program, executes the base page logic other than the service logic with loading page;
After page load is shown, the corresponding service logic is executed according to each delay duration.
3. according to the method described in claim 2, it is characterized in that, described execute corresponding institute according to each delay duration Service logic is stated, including:
The corresponding thread in the application page face executes each business function according to each delay duration, wherein one Business function corresponds to a delay duration, the corresponding service logic of each business function single expression, the service logic In the Presenter of MVP mode construction.
4. according to the method described in claim 2, it is characterized in that, described execute corresponding institute according to each delay duration Service logic is stated, including:
Foreground, which is executed, according to the delay duration in application program main thread executes logic;
Backstage, which is executed, according to the delay duration in back-stage management thread executes logic;
Wherein, it is the classification carried out in advance to the service logic that the foreground, which executes logic and backstage execution logic,.
5. the method according to claim 1, wherein the method also includes:
Dynamic updates the priority configuration file;
According to the updated priority configuration file, the execution priority of the service logic is adjusted.
6. according to the method described in claim 5, it is characterized in that, the dynamic updates the priority configuration file, including:
The execution time of each service logic of statistical collection and the reality of the corresponding business of each service logic are answered Use the time;
Calculate the time difference for executing time and the practical application time;
The time difference is uploaded into background server;
Dynamic configuration file is generated according to the time difference, wherein the dynamic configuration file is generated by background server, described Dynamic configuration file, which includes that each service logic is corresponding, executes delay, and the execution delay characterizes each business and patrols The execution priority collected;
Receive the dynamic configuration file;
The priority configuration file is replaced with into the dynamic configuration file;Or
By the priority configuration file and the dynamic configuration file mergences.
7. a kind of application program page shows device, which is characterized in that described device includes:
Command reception module, for receiving the enabled instruction of application program;
Configuration file read module, for reading preset priority configuration file, wherein the priority configuration file includes The execution priority of each service logic;
Delay distribution module, for distributing corresponding delay for each service logic according to the priority configuration file Duration;
Page presentation module executes the corresponding business according to each delay duration for showing the application program page Logic.
8. device according to claim 7, which is characterized in that the page presentation module includes:
First logic execution module, the interface for being provided by application program, executes the base page other than the service logic Face logic is with loading page;
Second logic execution module, for being executed according to each delay duration corresponding described after page load is shown Service logic.
9. device according to claim 8, which is characterized in that the second logic execution module, including:
Function implementation sub-module, it is each according to each delay duration execution for the corresponding thread in the application page face Business function, wherein the corresponding delay duration of business function, the corresponding business of each business function single expression Logic, the service logic are located in the Presenter of MVP mode construction.
10. device according to claim 8, which is characterized in that the second logic execution module, including:
Main thread module executes logic for executing foreground according to the delay duration in application program main thread;
Back-stage management threading models execute logic for executing backstage according to the delay duration in back-stage management thread;
Wherein, it is the classification carried out in advance to the service logic that the foreground, which executes logic and backstage execution logic,.
11. device according to claim 7, which is characterized in that described device further includes:
Priority configuration file update module, for dynamically updating the priority configuration file;
Dynamic adjustment module adjusts the execution priority of the service logic according to the updated priority configuration file.
12. device according to claim 11, which is characterized in that the priority configuration file update module, including:
Statistical collection submodule is patrolled for the execution time of each service logic of statistical collection and each business Collect the practical application time of corresponding business;
Computational submodule, for calculating the time difference for executing time and the practical application time;
Submodule is uploaded, for the time difference to be uploaded to background server;
Submodule is generated, for generating dynamic configuration file according to the time difference, wherein the dynamic configuration file is by backstage Server generates, and the dynamic configuration file, which includes that each service logic is corresponding, executes delay, the execution time-delay table Levy the execution priority of each service logic;
Receiving submodule, for receiving the dynamic configuration file;
Submodule is replaced, for the priority configuration file to be replaced with the dynamic configuration file;Or
Merge submodule, is used for the priority configuration file and the dynamic configuration file mergences.
CN201810350669.1A 2018-04-18 2018-04-18 Application page display method and device Active CN108829469B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810350669.1A CN108829469B (en) 2018-04-18 2018-04-18 Application page display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810350669.1A CN108829469B (en) 2018-04-18 2018-04-18 Application page display method and device

Publications (2)

Publication Number Publication Date
CN108829469A true CN108829469A (en) 2018-11-16
CN108829469B CN108829469B (en) 2021-08-20

Family

ID=64154933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810350669.1A Active CN108829469B (en) 2018-04-18 2018-04-18 Application page display method and device

Country Status (1)

Country Link
CN (1) CN108829469B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634653A (en) * 2018-11-30 2019-04-16 中链科技有限公司 A kind of resource allocation method and device based on component based architecture
CN109783159A (en) * 2019-01-24 2019-05-21 武汉瓯越网视有限公司 Application starting method and apparatus based on configuration information
CN109800031A (en) * 2019-01-18 2019-05-24 广州虎牙信息科技有限公司 Service control method, server, terminal and device based on mobile office system
CN110109759A (en) * 2019-05-07 2019-08-09 Oppo广东移动通信有限公司 Caton optimization method, server, electronic device and computer readable storage medium
CN110347446A (en) * 2019-07-16 2019-10-18 阿里巴巴集团控股有限公司 A kind of page resource loading method and system
CN111367570A (en) * 2020-02-19 2020-07-03 北京环境特性研究所 Application software self-starting method and device
CN112395034A (en) * 2020-11-23 2021-02-23 北京奇艺世纪科技有限公司 Page display method and device, electronic equipment and storage medium
CN113282388A (en) * 2021-04-26 2021-08-20 惠州市德赛西威汽车电子股份有限公司 Method for globally regulating and controlling service logic based on logic matrix table and vehicle-mounted system
CN113326422A (en) * 2020-02-28 2021-08-31 北京沃东天骏信息技术有限公司 Information acquisition method, device, equipment and medium
CN116841686A (en) * 2023-08-29 2023-10-03 荣耀终端有限公司 Application page display method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6195679B1 (en) * 1998-01-06 2001-02-27 Netscape Communications Corporation Browsing session recording playback and editing system for generating user defined paths and allowing users to mark the priority of items in the paths
CN101996073A (en) * 2009-08-31 2011-03-30 阿里巴巴集团控股有限公司 Component rendering method and device
CN102707973A (en) * 2012-05-04 2012-10-03 惠州Tcl移动通信有限公司 Application program starting method based on Android system and system
US20150277708A1 (en) * 2014-04-01 2015-10-01 Microsoft Corporation Command user interface for displaying and scaling selectable controls and commands
CN107133065A (en) * 2017-03-31 2017-09-05 北京奇艺世纪科技有限公司 A kind of method and device for opening software function

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6195679B1 (en) * 1998-01-06 2001-02-27 Netscape Communications Corporation Browsing session recording playback and editing system for generating user defined paths and allowing users to mark the priority of items in the paths
CN101996073A (en) * 2009-08-31 2011-03-30 阿里巴巴集团控股有限公司 Component rendering method and device
CN102707973A (en) * 2012-05-04 2012-10-03 惠州Tcl移动通信有限公司 Application program starting method based on Android system and system
US20150277708A1 (en) * 2014-04-01 2015-10-01 Microsoft Corporation Command user interface for displaying and scaling selectable controls and commands
CN107133065A (en) * 2017-03-31 2017-09-05 北京奇艺世纪科技有限公司 A kind of method and device for opening software function

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
YUNA KIM ET AL.: "《Web prefetching using display-based prediction》", 《 PROCEEDINGS IEEE/WIC INTERNATIONAL CONFERENCE ON WEB INTELLIGENCE (WI 2003)》 *
陈俊璘: "《Web应用程序的性能优化研究》", 《中国优秀硕士学位论文全文数据库(电子期刊)信息科技辑》 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634653A (en) * 2018-11-30 2019-04-16 中链科技有限公司 A kind of resource allocation method and device based on component based architecture
CN109634653B (en) * 2018-11-30 2023-08-01 苏州朗润创新知识产权运营有限公司 Resource allocation method and device based on componentized architecture
CN109800031A (en) * 2019-01-18 2019-05-24 广州虎牙信息科技有限公司 Service control method, server, terminal and device based on mobile office system
CN109783159A (en) * 2019-01-24 2019-05-21 武汉瓯越网视有限公司 Application starting method and apparatus based on configuration information
CN110109759B (en) * 2019-05-07 2021-11-26 Oppo广东移动通信有限公司 Catton optimization method, server, electronic device and computer-readable storage medium
CN110109759A (en) * 2019-05-07 2019-08-09 Oppo广东移动通信有限公司 Caton optimization method, server, electronic device and computer readable storage medium
CN110347446A (en) * 2019-07-16 2019-10-18 阿里巴巴集团控股有限公司 A kind of page resource loading method and system
CN111367570A (en) * 2020-02-19 2020-07-03 北京环境特性研究所 Application software self-starting method and device
CN113326422A (en) * 2020-02-28 2021-08-31 北京沃东天骏信息技术有限公司 Information acquisition method, device, equipment and medium
CN112395034A (en) * 2020-11-23 2021-02-23 北京奇艺世纪科技有限公司 Page display method and device, electronic equipment and storage medium
CN113282388A (en) * 2021-04-26 2021-08-20 惠州市德赛西威汽车电子股份有限公司 Method for globally regulating and controlling service logic based on logic matrix table and vehicle-mounted system
WO2022227254A1 (en) * 2021-04-26 2022-11-03 惠州市德赛西威汽车电子股份有限公司 Method for globally regulating service logic based on logical matrix table, and vehicle-mounted system
CN116841686A (en) * 2023-08-29 2023-10-03 荣耀终端有限公司 Application page display method

Also Published As

Publication number Publication date
CN108829469B (en) 2021-08-20

Similar Documents

Publication Publication Date Title
CN108829469A (en) A kind of application program page methods of exhibiting and device
CN110727512B (en) Cluster resource scheduling method, device, equipment and storage medium
CN107967316A (en) A kind of method of data synchronization, equipment and computer-readable recording medium
US8943406B2 (en) Generating user help information for customized user interface
CN108304250A (en) Method and apparatus for the node for determining operation machine learning task
CN106970822A (en) A kind of container creation method and device
CN106104483A (en) Abnormality processing in microprocessor system
CN106199696B (en) Earthquake data processing system and method
CN109324977A (en) Detection method, device and the electronic equipment of application program Caton
CN107451272B (en) Information display method, medium, device and computing equipment
US11238632B2 (en) Interface to index and display geospatial data
CN108900434A (en) Data collection distribution method and device
US20160274874A1 (en) Method and apparatus for processing request
CN106453501A (en) Method and apparatus for modifying configuration information of service
CN110209967A (en) Page loading method, device, terminal device and computer-readable medium
CN107506483A (en) Page loading method, device, electronic equipment and storage medium
CN113204425B (en) Method, device, electronic equipment and storage medium for process management internal thread
US10713747B2 (en) System and method for distributed processing of graphic server components
US20200117443A1 (en) Selective application updates based on usage analytics
CN106028144A (en) Method and device for monitoring audio and video resources in television terminal, and television terminal
CN113760242A (en) Data processing method, device, server and medium
US20180196928A1 (en) Network visualization for access controls
CN108255875A (en) Message is stored to the method and apparatus of distributed file system
KR20120069364A (en) Apparatus and method of processing the frame for considering processing capability and power consumption in multicore environment
CN112905072B (en) Application processing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant