CN112988281A - Application starting method and device - Google Patents

Application starting method and device Download PDF

Info

Publication number
CN112988281A
CN112988281A CN202110449308.4A CN202110449308A CN112988281A CN 112988281 A CN112988281 A CN 112988281A CN 202110449308 A CN202110449308 A CN 202110449308A CN 112988281 A CN112988281 A CN 112988281A
Authority
CN
China
Prior art keywords
service
application
starting
services
started
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
CN202110449308.4A
Other languages
Chinese (zh)
Other versions
CN112988281B (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.)
Zhejiang Koubei Network Technology Co Ltd
Original Assignee
Zhejiang Koubei Network 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 Zhejiang Koubei Network Technology Co Ltd filed Critical Zhejiang Koubei Network Technology Co Ltd
Priority to CN202110449308.4A priority Critical patent/CN112988281B/en
Publication of CN112988281A publication Critical patent/CN112988281A/en
Application granted granted Critical
Publication of CN112988281B publication Critical patent/CN112988281B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses an application starting method and device, wherein the method comprises the following steps: monitoring an application starting command, and intercepting the application starting command; the applied terminal equipment is IOS terminal equipment; performing layered service extraction according to the application starting command to obtain a plurality of services related to application starting, and inquiring starting time levels of the plurality of services related to application starting; the starting time level of the service is determined according to whether the dependency relationship exists between the service and the application framework and/or the service to be loaded in the application starting process; and according to the starting time level of each service, the service is sequentially embedded into the starting process management and control so as to start each service and finish the starting of the application. The problems that the starting efficiency is influenced due to the fact that resources are excessively occupied when multiple services are started simultaneously, the service with low starting time level is not started successfully due to the fact that the required service with high starting time level is not started successfully, the starting of the service with low starting time level is failed, the starting time is too long and the like cause application downtime are solved.

Description

Application starting method and device
Technical Field
The embodiment of the invention relates to the technical field of Internet, in particular to an application starting method and device.
Background
When the application is started, the application starting speed is high or low, whether the page is blocked or not during displaying is judged, the page display effect is influenced by the network, the application downtime is caused, and the use experience of a user is greatly influenced. The good user experience can increase the viscosity of the user to the application, and the user experience is poor, so that the user can run off and the like.
In the prior art, when an application is started, the application is started as a whole, and a plurality of different services contained or related in the application are called and started at the same time of starting the application. When the starting of a certain service is time-consuming, the application is started slowly, and the whole starting of the application is influenced. Therefore, optimizing the application start and solving various problems that may be encountered when the application starts are problems that the application start is urgently needed to solve.
Disclosure of Invention
In view of the above, embodiments of the present invention are proposed to provide an application startup method and apparatus that overcome or at least partially solve the above problems.
According to an aspect of an embodiment of the present invention, there is provided an application starting method, including:
monitoring an application starting command, and intercepting the application starting command; the applied terminal equipment is IOS terminal equipment;
performing layered service extraction according to the application starting command to obtain a plurality of services related to application starting, and inquiring starting time levels of the plurality of services related to application starting; the starting time level of the service is determined according to the dependency relationship between the service and the application framework and/or the business to be loaded in the application starting process;
and according to the starting time level of each service, the service is sequentially embedded into the starting process management and control so as to start each service and finish the starting of the application.
Optionally, the plurality of services comprises one or more first services and one or more second services; the first service is a service with a dependency relationship with the application framework, and the second service is a service with a dependency relationship with the service to be loaded;
the activation time level of the first service is higher than the activation time level of the second service.
Optionally, the plurality of services further comprises one or more third services; the third service comprises a service which has a dependency relationship with the business to be loaded of the application head page when the application is started;
the activation time level of the third service is lower than the activation time level of the second service.
Optionally, the third service further includes a service having a dependency relationship with a service of the non-application top page; and the third service is started according to the service scene and/or the service use appeal triggered by the user.
Optionally, according to the starting time level of each service, embedding the service in the starting process management and control in sequence to start each service, and completing the starting of the application further includes:
according to the starting time level of each service, a plurality of services of the same starting time level are started concurrently; wherein, the number of the services started concurrently is set according to the performance of the terminal equipment.
Optionally, the extracting layered services according to the application start command, and obtaining a plurality of services related to application start further includes:
determining an application to be started according to an application starting instruction, and acquiring configuration information and/or network transmission information of the application;
determining the service to be loaded and the application frame information in the application starting process according to the configuration information and/or the network transmission information of the application;
and extracting services according to the service to be loaded, determining the services with the dependency relationship with the service to be loaded, extracting the services of the application framework layer, and determining the services with the dependency relationship with the application framework.
Optionally, the method further comprises:
after the application is updated, acquiring an application frame associated with the application update and/or a service to be loaded in the application starting process;
and updating the starting time level of each service according to the dependency relationship between the service to be loaded and each service in the application framework and/or the application starting process.
Optionally, the terminal device of the application is an IOS terminal device.
According to another aspect of the embodiments of the present invention, there is provided an application starting apparatus including:
the interception module is suitable for monitoring the application starting command and intercepting the application starting command; the applied terminal equipment is IOS terminal equipment;
the extraction query module is suitable for extracting the layered services according to the application starting command to obtain a plurality of services related to application starting and querying the starting time grades of the services related to application starting; the starting time level of the service is determined according to the dependency relationship between the service and the application framework and/or the business to be loaded in the application starting process;
and the starting module is suitable for embedding the services into the starting process management and control in sequence according to the starting time grade of each service so as to start each service and finish the starting of the application.
Optionally, the plurality of services comprises one or more first services and one or more second services; the first service is a service with a dependency relationship with the application framework, and the second service is a service with a dependency relationship with the service to be loaded;
the activation time level of the first service is higher than the activation time level of the second service.
Optionally, the plurality of services further comprises one or more third services; the third service comprises a service which has a dependency relationship with the business to be loaded of the application head page when the application is started;
the activation time level of the third service is lower than the activation time level of the second service.
Optionally, the third service further includes a service having a dependency relationship with a service of the non-application top page; and the third service is started according to the service scene and/or the service use appeal triggered by the user.
Optionally, the start module is further adapted to:
according to the starting time level of each service, a plurality of services of the same starting time level are started concurrently; wherein, the number of the services started concurrently is set according to the performance of the terminal equipment.
Optionally, the extraction query is further adapted to:
determining an application to be started according to an application starting instruction, and acquiring configuration information and/or network transmission information of the application;
determining the service to be loaded and the application frame information in the application starting process according to the configuration information and/or the network transmission information of the application;
and extracting services according to the service to be loaded, determining the services with the dependency relationship with the service to be loaded, extracting the services of the application framework layer, and determining the services with the dependency relationship with the application framework.
Optionally, the apparatus further comprises:
the updating module is suitable for acquiring an application frame associated with application updating and/or a service to be loaded in the application starting process after the application is updated; and updating the starting time level of each service according to the dependency relationship between the service to be loaded and each service in the application framework and/or the application starting process.
Optionally, the terminal device of the application is an IOS terminal device.
According to still another aspect of an embodiment of the present invention, there is provided a computing device including: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the application starting method.
According to a further aspect of the embodiments of the present invention, there is provided a computer storage medium, in which at least one executable instruction is stored, and the executable instruction causes a processor to perform an operation corresponding to the application starting method.
According to the application starting method and device provided by the embodiment of the invention, the IOS terminal equipment is monitored, the application starting command is intercepted, and the layered service extraction is carried out based on the application starting command to obtain a plurality of services related to application starting. The services are started in sequence according to the starting time level of the services, so that the problems that all the services are started simultaneously, the service starting efficiency is influenced by too much occupied resources of a plurality of services and the like can be solved; on the other hand, according to the dependency relationship between the service and the service to be loaded in the application framework and/or the application starting process, the service with high starting time level is started first according to the starting time level, and the problems that when all the services are started simultaneously, the service with low starting time level cannot be started successfully due to the fact that the required service with high starting time level is not started successfully, the service with low starting time level cannot be started successfully, the starting time is too long, and the like are caused are solved.
The foregoing description is only an overview of the technical solutions of the embodiments of the present invention, and the embodiments of the present invention can be implemented according to the content of the description in order to make the technical means of the embodiments of the present invention more clearly understood, and the detailed description of the embodiments of the present invention is provided below in order to make the foregoing and other objects, features, and advantages of the embodiments of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the embodiments of the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 shows a flow diagram of an application launching method according to one embodiment of the invention;
FIG. 2 shows a flow diagram of an application launching method according to another embodiment of the invention;
FIG. 3 is a schematic diagram of an application launching device according to an embodiment of the present invention;
FIG. 4 shows a schematic structural diagram of a computing device according to an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Fig. 1 shows a flowchart of an application launching method according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
step S101, monitoring an application starting command and intercepting the application starting command.
In this embodiment, the terminal device is an IOS terminal device, that is, the terminal device system is an IOS system. Due to the closed-source characteristic of the IOS system, after receiving the application start command, the prior art directly executes the relevant start command by the IOS system, and cannot modify the processing flow of the start command of the IOS system, that is, cannot directly modify the start task sequence when the application is started, so that the application is started as a whole, and the application start efficiency is affected.
In view of the above problems, the present embodiment intercepts a received application start command by monitoring the application start command. Specifically, for example, through a monitoring mechanism of message notification, when a user directly triggers an application icon at a terminal device, or starts an application through external access of other applications, or the like, an application start command is monitored and intercepted.
And step S102, performing layered service extraction according to the application starting command to obtain a plurality of services related to application starting.
According to the intercepted application starting command, the application to be started corresponding to the application starting command can be determined. The configuration information and the network transmission information (related information obtained when the application accesses and uses the network, etc.) of the application to be started are obtained, and the service to be loaded and the application framework information, etc. in the application starting process are determined. And extracting the services required to be presented to the user from the service layer according to the service to be loaded, namely obtaining the services which have a dependency relationship with the service to be loaded. Meanwhile, based on application starting, the application framework layer is also extracted, for example, when the application is started, the application framework is determined to be loaded, rendered, run and the like, and services and the like with dependency relationship exist between the application framework. In the embodiment, layered service extraction is performed from different layers such as an application framework layer and a business layer, and a plurality of services related to application starting are obtained from the application framework and the business of the application. The plurality of services comprise services of dependency relationships existing between the application framework and the business to be loaded in the application starting process. The above service extraction does not limit the extraction order.
The services extracted by the service extraction module include the services which are depended on by the application framework and the services which are depended on by the to-be-loaded services, such as the underlying services of the application framework included in the IOS terminal equipment system, the services which can be called by the application and are provided by the terminal equipment system, and the services included in the application. The underlying services of the application framework included in the terminal device system include, for example, infrastructure services for providing application code, system services for application development, services related to defining the appearance of an application, and the like. The services which can be called by the application and are provided by the terminal equipment system comprise services provided by the terminal equipment system such as positioning service, playing service, showing service and the like of the system. The services included in the application itself include services developed for implementing various services in the application, and the like.
Step S103, inquiring the starting time levels of a plurality of services related to application starting.
After the plurality of services are extracted according to the services in step S102, the process of starting the original application is abstracted from the process of executing the related start command by the original IOS system to the start of each service. When each service is started, the starting time level of each service is required to be inquired and determined so as to start the service according to the starting time level, and the problems that resources are excessively occupied when the services are started simultaneously in the service starting process or the starting sequence among the services affects the service starting failure, the application downtime and the like are avoided.
Specifically, the starting time levels of the plurality of services are defined by the dependency relationship between the service to be loaded and each service in the application starting process. The plurality of services includes one or more first services and one or more second services. The first service is a service having a dependency relationship with the application framework, for example, when the application is started, the application framework needs to be rendered first, and only after the application framework is rendered, the display content and the business processing flow can be correspondingly added in the application framework. Therefore, the application framework services on which the application framework depends are particularly important, including services such as UI layer framework, media processing related framework, and the like, which are determined according to the actual application framework. And after the application framework service is started, if the application shows the relevant content of the service to be loaded to the user, the service with the dependency relationship with the service to be loaded needs to be obtained by analysis according to the service to be loaded. If the application page displays information based on the current positioning of the user, the service to be loaded depends on the positioning service, and the positioning service is the second service. The second service comprises various preposed services which are depended by the service to be loaded, whether the second service is started successfully or not influences the normal use of the service to be loaded, and the second service needs to be started before the service to be loaded is executed. The specific second service is determined according to the service to be loaded of the application. By integrating the importance degrees of the multiple services, for example, the UI layer frame service in the first service, when the application starts the presentation page, the UI layer frame service needs to be started first to render the frame of the corresponding UI layer, and on this basis, the rendered UI layer frame can be used to fill the corresponding page content. Therefore, the starting time level of the first service is higher than that of the second service, so that the second service can be started after the first service is started according to the starting time level, the first service is started completely when the second service is started, and the problems that the second service is started unsuccessfully and the like caused by the fact that the application framework is not rendered are avoided.
Besides the first service and the second service, the application startup can also comprise other services, the other services determine corresponding startup time levels according to the importance degree during startup, the closeness of the dependency relationship with the service to be loaded and the like, and the startup time levels of the other services are lower than the startup time levels of the first service and the second service.
According to the starting time level of the service, the service to be started when the application is started and the service starting sequence are clarified, the service required to be started at the same time when the application is started is simplified, the unadjustable sequence when the original application is started is broken, the application is started from the requirement of the application, if the application needs to present the service of a user, the application is started to better meet the self requirement of the application, and the personalized service requirement of the application is met when the application is started.
And step S104, embedding the services into the starting process management and control in sequence according to the starting time grade of each service so as to start each service and finish the starting of the application.
In the prior art, when an application is started, the services are started simultaneously, and each service occupies resources of a terminal device when being started, so that the resource occupation greatly affects the starting efficiency. In this embodiment, each service is sequentially started according to the starting time level of each service, for example, the service is sequentially embedded into the corresponding starting flow control according to the specification of application flow control in the IOS system, each service is sequentially started according to the starting time level sequence, and after the first service is successfully started, the second service … is started, so that the start of the application is completed.
According to the application starting method provided by the embodiment of the invention, the IOS terminal equipment is monitored, the application starting command is intercepted, and the layered service extraction is carried out based on the application starting command to obtain a plurality of services related to application starting. The services are started in sequence according to the starting time level of the services, so that the problems that all the services are started simultaneously, the service starting efficiency is influenced by too much occupied resources of a plurality of services and the like can be solved; on the other hand, according to the dependency relationship between the service and the service to be loaded in the application framework and/or the application starting process, the service with high starting time level is started first according to the starting time level, and the problems that when all the services are started simultaneously, the service with low starting time level cannot be started successfully due to the fact that the required service with high starting time level is not started successfully, the service with low starting time level cannot be started successfully, the starting time is too long, and the like are caused are solved.
Fig. 2 shows a flow chart of an application launching method according to an embodiment of the invention, as shown in fig. 2, the method comprising the steps of:
step S201, monitoring an application starting command and intercepting the application starting command.
This step is described with reference to step S101, and is not described in detail here.
Step S202, extracting the layered services according to the application starting command to obtain a plurality of services related to application starting, and inquiring the starting time levels of the plurality of services related to application starting.
When the layered service extraction is performed according to the application starting command, the plurality of services include one or more third services in addition to the first service and the second service associated with the application starting. The third service comprises a service which has a dependency relationship with the business to be loaded of the application head page when the application is started. For example, the application home page shows the shop information, and the third service includes a shop information acquisition service and the like. The starting time grade of the third service is lower than that of the second service, and the second service comprises a prepositive service, such as a positioning service, of the business to be loaded of the application head page. After the second service is started, the positioning information of the user is acquired, and according to the positioning information of the user, a third service is started to acquire shop information and the like near the positioning information. Here, the third service may be a service that includes only a dependency relationship with the to-be-loaded service of the application top page at the time of application startup. And after the third service is started, completing the loading of the business to be loaded of the application home page, and displaying the application home page to a user. For the user, after the application home page display is completed, the user can operate the application, and the user senses that the application is started, and does not pay attention to whether all services of the application are loaded completely. After the third service is started, the application is started completely for the user, and the subsequent starting of other services does not influence the user to browse the application home page, so that the experience effect of the user in using the application is greatly improved.
Further, the third service may also include a service having a dependency relationship with a service of the non-application home page, such as a service related to subsequent order processing, a service for clicking the application home page to jump to another page, and the like, and the third service may be started correspondingly according to the service use appeal, or the third service may be started corresponding to a service included in a service scenario triggered when the user operates the application, so as to reduce the operating pressure of the terminal device when all services are started simultaneously according to the application start command, and improve the application start time.
Step S203 is executed to concurrently start a plurality of services at the same start time level according to the start time level of each service.
When the services are started in sequence according to the starting time levels of the services, in order to shorten the starting time of the services, a plurality of services with the same starting time level can be started simultaneously, so that the effect of changing the time of a space is achieved. When the concurrent start is performed, the number of the concurrently started services is set according to the performance of the terminal device, for example, the hardware performance of the IOS terminal device is considered, and the influence of the concurrent start thread on the normal operation of the terminal device is avoided. Furthermore, the services started concurrently at the same starting time level do not have mutual dependency relationship and the like, so that the problems that the starting of a certain service fails and the like caused by the parallel starting are avoided. For example, the third service includes a shop information acquisition service, an application home page tag display acquisition service, and the like, which are stored in a service queue, and a plurality of threads are concurrently started, where each thread correspondingly starts one service and simultaneously concurrently starts a plurality of services.
Step S204, after the application is updated, acquiring the application framework associated with the application update and/or the service to be loaded in the application starting process.
Step S205, updating the starting time level of each service according to the dependency relationship between the service to be loaded and each service in the application framework and/or the application starting process.
For the starting time grade of each service, after determining according to whether a dependency relationship exists between the service and the service to be loaded in the application framework and/or the application starting process, the starting time grade of each service is recorded, and when the application is started, the recorded starting time grade of each service is directly inquired and obtained.
In this embodiment, besides recording the starting time level of each service, the starting time level of the service may be updated in time according to the update condition of the application, so as to implement full link management and control on the application. Specifically, after the application is updated, the application framework associated with the application update and/or the service to be loaded in the application starting process are obtained according to the application information of the application update, where the service to be loaded in the associated application framework and/or application starting process includes the newly added application framework and/or the service to be loaded in the application starting process, the deleted application framework and/or the service to be loaded in the application starting process, the service to be loaded in the application starting process with the adjusted sequence, and the like. According to the application framework and/or the service to be loaded in the application starting process and the dependency relationship between the application framework and each service, the starting time level of each service can be updated in time, the services can be started in sequence based on the starting time level of the updated service when the application is started after updating, and the application is started.
According to the application starting method provided by the embodiment of the invention, the layered service is extracted according to the application starting instruction. A plurality of services are obtained, including a first service, a second service, and a third service. And the third service comprises a service which has a dependency relationship with the business to be loaded of the application head page when the application is started. And after the third service is started, completing the loading of the business to be loaded of the application home page, and displaying the application home page to a user. For the user, after the application home page display is completed, the user can operate the application, and the user senses that the application is started, and does not pay attention to whether all services of the application are loaded completely. After the third service is started, the application is started completely for the user, and the subsequent starting of other services does not influence the user to browse the application home page, so that the experience effect of the user in using the application is greatly improved. Furthermore, a plurality of services of the same starting time level are started simultaneously, so that space is exchanged for time, and the service starting efficiency is improved.
Fig. 3 is a schematic structural diagram illustrating an application starting apparatus according to an embodiment of the present invention. As shown in fig. 3, the apparatus includes:
the intercepting module 310 is suitable for monitoring the application starting command and intercepting the application starting command; the applied terminal equipment is IOS terminal equipment;
the extraction query module 320 is adapted to perform hierarchical service extraction according to the application start command, obtain a plurality of services associated with application start, and query start time levels of the plurality of services associated with application start; the starting time level of the service is determined according to the dependency relationship between the service and the application framework and/or the business to be loaded in the application starting process;
the starting module 330 is adapted to embed the services into the starting process management and control in sequence according to the starting time levels of the services, so as to start the services and complete the starting of the application.
Optionally, the plurality of services comprises one or more first services and one or more second services; the first service is a service with a dependency relationship with the application framework, and the second service is a service with a dependency relationship with the service to be loaded;
the activation time level of the first service is higher than the activation time level of the second service.
Optionally, the plurality of services further comprises one or more third services; the third service comprises a service which has a dependency relationship with the business to be loaded of the application head page when the application is started;
the activation time level of the third service is lower than the activation time level of the second service.
Optionally, the third service further includes a service having a dependency relationship with a service of the non-application top page; and the third service is started according to the service scene and/or the service use appeal triggered by the user.
Optionally, the initiating module 330 is further adapted to:
according to the starting time level of each service, a plurality of services of the same starting time level are started concurrently; wherein, the number of the services started concurrently is set according to the performance of the terminal equipment.
Optionally, the extraction query module 320 is further adapted to determine an application to be started according to the application start instruction, and obtain configuration information and/or network transmission information of the application; determining the service to be loaded and the application frame information in the application starting process according to the configuration information and/or the network transmission information of the application; and extracting services according to the service to be loaded, determining the services with the dependency relationship with the service to be loaded, extracting the services of the application framework layer, and determining the services with the dependency relationship with the application framework.
Optionally, the apparatus further comprises:
the updating module 340 is adapted to obtain an application framework associated with application update and/or a service to be loaded in an application starting process after the application is updated; and updating the starting time level of each service according to the dependency relationship between the service to be loaded and each service in the application framework and/or the application starting process.
Optionally, the terminal device of the application is an IOS terminal device.
The descriptions of the modules refer to the corresponding descriptions in the method embodiments, and are not repeated herein.
According to the application starting device provided by the embodiment of the invention, the IOS terminal equipment is monitored, the application starting command is intercepted, and the layered service extraction is carried out based on the application starting command to obtain a plurality of services related to application starting. The services are started in sequence according to the starting time level of the services, so that the problems that all the services are started simultaneously, the service starting efficiency is influenced by too much occupied resources of a plurality of services and the like can be solved; on the other hand, according to the dependency relationship between the service and the service to be loaded in the application framework and/or the application starting process, the service with high starting time level is started first according to the starting time level, and the problems that when all the services are started simultaneously, the service with low starting time level cannot be started successfully due to the fact that the required service with high starting time level is not started successfully, the service with low starting time level cannot be started successfully, the starting time is too long, and the like are caused are solved.
The embodiment of the invention also provides a nonvolatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the executable instruction can execute the application starting method in any method embodiment.
Fig. 4 is a schematic structural diagram of a computing device according to an embodiment of the present invention, and a specific embodiment of the present invention does not limit a specific implementation of the computing device.
As shown in fig. 4, the computing device may include: a processor (processor)402, a Communications Interface 404, a memory 406, and a Communications bus 408.
The method is characterized in that:
the processor 402, communication interface 404, and memory 406 communicate with each other via a communication bus 408.
A communication interface 404 for communicating with network elements of other devices, such as clients or other servers.
The processor 402 is configured to execute the program 410, and may specifically execute the relevant steps in the above-described embodiment of the application starting method.
In particular, program 410 may include program code comprising computer operating instructions.
The processor 402 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present invention. The computing device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 406 for storing a program 410. Memory 406 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 410 may specifically be configured to cause the processor 402 to execute the application start method in any of the above-described method embodiments. For specific implementation of each step in the program 410, reference may be made to corresponding steps and corresponding descriptions in units in the foregoing application start embodiment, which are not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, and are not described herein again.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of embodiments of the present invention as described herein, and any descriptions of specific languages are provided above to disclose preferred embodiments of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that is, the claimed embodiments of the invention require more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components according to embodiments of the present invention. Embodiments of the invention may also be implemented as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing embodiments of the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. Embodiments of the invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise.

Claims (10)

1. An application startup method, characterized in that the method comprises:
monitoring an application starting command, and intercepting the application starting command; the terminal equipment of the application is IOS terminal equipment;
performing layered service extraction according to the application starting command to obtain a plurality of services related to application starting, and inquiring starting time levels of the plurality of services related to application starting; the starting time level of the service is determined according to the dependency relationship between the service and the application framework and/or the business to be loaded in the application starting process;
and according to the starting time level of each service, the service is sequentially embedded into the starting process management and control so as to start each service and finish the starting of the application.
2. The method of claim 1, wherein the plurality of services comprises one or more first services and one or more second services; the first service is a service with a dependency relationship with the application framework, and the second service is a service with a dependency relationship with the service to be loaded;
the activation time level of the first service is higher than the activation time level of the second service.
3. The method of claim 2, wherein the plurality of services further comprises one or more third services; the third service comprises a service which has a dependency relationship with the business to be loaded of the application head page when the application is started;
the activation time level of the third service is lower than the activation time level of the second service.
4. The method of claim 3, wherein the third service further comprises a service having a dependency relationship with a service of a non-application header page; and the third service is started according to the service scene and/or the service use appeal triggered by the user.
5. The method according to any one of claims 1 to 4, wherein the embedding the services into the start-up process management and control in sequence according to the start-up time level of each service to start up each service, and completing the start-up of the application further comprises:
according to the starting time level of each service, a plurality of services of the same starting time level are started concurrently; wherein, the number of the services started concurrently is set according to the performance of the terminal equipment.
6. The method according to any one of claims 1-4, wherein the performing hierarchical service extraction according to the application start command to obtain a plurality of services associated with application start further comprises:
determining an application to be started according to an application starting instruction, and acquiring configuration information and/or network transmission information of the application;
determining the service to be loaded and the application frame information in the application starting process according to the configuration information and/or the network transmission information of the application;
and extracting services according to the service to be loaded, determining the services with the dependency relationship with the service to be loaded, extracting the services of the application framework layer, and determining the services with the dependency relationship with the application framework.
7. The method according to any one of claims 1-4, further comprising:
after the application is updated, acquiring an application frame associated with the application update and/or a service to be loaded in the application starting process;
and updating the starting time level of each service according to the dependency relationship between the service to be loaded and each service in the application framework and/or the application starting process.
8. An application launching device, characterized in that the device comprises:
the interception module is suitable for monitoring the application starting command and intercepting the application starting command; the terminal equipment of the application is IOS terminal equipment;
the extraction query module is suitable for extracting the layered services according to the application starting command to obtain a plurality of services related to application starting and querying the starting time grades of the services related to application starting; the starting time level of the service is determined according to the dependency relationship between the service and the application framework and/or the business to be loaded in the application starting process;
and the starting module is suitable for embedding the services into the starting process management and control in sequence according to the starting time grade of each service so as to start each service and finish the starting of the application.
9. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the application starting method according to any one of claims 1-7.
10. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the application launching method of any one of claims 1-7.
CN202110449308.4A 2021-04-25 2021-04-25 Application starting method and device Active CN112988281B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110449308.4A CN112988281B (en) 2021-04-25 2021-04-25 Application starting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110449308.4A CN112988281B (en) 2021-04-25 2021-04-25 Application starting method and device

Publications (2)

Publication Number Publication Date
CN112988281A true CN112988281A (en) 2021-06-18
CN112988281B CN112988281B (en) 2021-08-03

Family

ID=76340059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110449308.4A Active CN112988281B (en) 2021-04-25 2021-04-25 Application starting method and device

Country Status (1)

Country Link
CN (1) CN112988281B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113778568A (en) * 2021-09-09 2021-12-10 网易(杭州)网络有限公司 Service control method and device
CN114116068A (en) * 2021-12-02 2022-03-01 重庆紫光华山智安科技有限公司 Service starting optimization method and device, electronic equipment and readable storage medium
CN114860351A (en) * 2022-07-08 2022-08-05 浙江口碑网络技术有限公司 Abnormity identification method and device, storage medium and computer equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955388A (en) * 2014-04-29 2014-07-30 百度在线网络技术(北京)有限公司 Cold start method and device for client
CN106909368A (en) * 2017-01-12 2017-06-30 华南理工大学 A kind of service end operation layer logical architecture for realizing fastext exploitation
CN107015820A (en) * 2016-01-27 2017-08-04 阿里巴巴集团控股有限公司 Using startup method, device and server
CN107766101A (en) * 2017-09-30 2018-03-06 五八有限公司 App starts processing method, device and the equipment of event
CN108984289A (en) * 2018-07-19 2018-12-11 北京车联天下信息技术有限公司 Priority control method, device and car networking service platform
CN109086094A (en) * 2018-06-06 2018-12-25 中国建设银行股份有限公司 Method, system, device and the storage medium of application service self-starting
CN109308241A (en) * 2018-09-05 2019-02-05 腾讯科技(深圳)有限公司 Monitor application program launching flow and method, device, terminal device and storage medium
CN109684034A (en) * 2018-12-12 2019-04-26 杭州数梦工场科技有限公司 Start the method and device of container application
CN110333932A (en) * 2019-06-13 2019-10-15 上海金融期货信息技术有限公司 Service orchestration and relationship managing method and system based on container cloud
CN110708214A (en) * 2019-09-26 2020-01-17 浙江口碑网络技术有限公司 Service data display method, device, equipment and computer readable storage medium
US20200233694A1 (en) * 2019-01-22 2020-07-23 Capital One Services, Llc Methods, mediums, and systems for provisioning application services

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955388A (en) * 2014-04-29 2014-07-30 百度在线网络技术(北京)有限公司 Cold start method and device for client
CN107015820A (en) * 2016-01-27 2017-08-04 阿里巴巴集团控股有限公司 Using startup method, device and server
CN106909368A (en) * 2017-01-12 2017-06-30 华南理工大学 A kind of service end operation layer logical architecture for realizing fastext exploitation
CN107766101A (en) * 2017-09-30 2018-03-06 五八有限公司 App starts processing method, device and the equipment of event
CN109086094A (en) * 2018-06-06 2018-12-25 中国建设银行股份有限公司 Method, system, device and the storage medium of application service self-starting
CN108984289A (en) * 2018-07-19 2018-12-11 北京车联天下信息技术有限公司 Priority control method, device and car networking service platform
CN109308241A (en) * 2018-09-05 2019-02-05 腾讯科技(深圳)有限公司 Monitor application program launching flow and method, device, terminal device and storage medium
CN109684034A (en) * 2018-12-12 2019-04-26 杭州数梦工场科技有限公司 Start the method and device of container application
US20200233694A1 (en) * 2019-01-22 2020-07-23 Capital One Services, Llc Methods, mediums, and systems for provisioning application services
CN110333932A (en) * 2019-06-13 2019-10-15 上海金融期货信息技术有限公司 Service orchestration and relationship managing method and system based on container cloud
CN110708214A (en) * 2019-09-26 2020-01-17 浙江口碑网络技术有限公司 Service data display method, device, equipment and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李希凡: "Android关键服务分析与启动过程优化", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113778568A (en) * 2021-09-09 2021-12-10 网易(杭州)网络有限公司 Service control method and device
CN114116068A (en) * 2021-12-02 2022-03-01 重庆紫光华山智安科技有限公司 Service starting optimization method and device, electronic equipment and readable storage medium
CN114116068B (en) * 2021-12-02 2023-06-02 重庆紫光华山智安科技有限公司 Service start optimization method and device, electronic equipment and readable storage medium
CN114860351A (en) * 2022-07-08 2022-08-05 浙江口碑网络技术有限公司 Abnormity identification method and device, storage medium and computer equipment

Also Published As

Publication number Publication date
CN112988281B (en) 2021-08-03

Similar Documents

Publication Publication Date Title
CN112988281B (en) Application starting method and device
US20170161059A1 (en) Management of multiple application programming interface versions for development environments
CN107896162B (en) Deployment method and device of monitoring system, computer equipment and storage medium
US9535754B1 (en) Dynamic provisioning of computing resources
US9223601B2 (en) Control device, control method, and non-transitory computer-readable storage medium for a virtual system deployment
CN108920365B (en) WebUI automatic testing method based on docker
CN111782339B (en) Container creation method and device, electronic equipment and storage medium
CN107957837B (en) Method and device for generating shortcut of webpage application program and terminal equipment
US20190317736A1 (en) State machine representation of a development environment deployment process
CN112836152B (en) Page rendering method, system, computer device and computer readable storage medium
CN110673923A (en) XWIKI system configuration method, system and computer equipment
CN107276842B (en) Interface test method and device and electronic equipment
US9141363B2 (en) Application construction for execution on diverse computing infrastructures
CN111669284A (en) OpenStack automatic deployment method, electronic device, storage medium and system
CN112473144A (en) Game resource data processing method and device
CN109343862B (en) Scheduling method and device of resource data of application
US10120707B2 (en) Deployment of development environments
CN111338829B (en) Calling method and device for remote procedure call service
CN113656107A (en) Mobile application loading method and device and electronic equipment
CN108062336A (en) Media information processing method and device
CN117056115B (en) Application program repairing method and device, storage medium and electronic equipment
CN108062224B (en) Data reading and writing method and device based on file handle and computing equipment
CN111506388A (en) Container performance detection method, container management platform and computer storage medium
US10394534B2 (en) Framework for flexible logging of development environment deployment
CN108563461A (en) A kind of method, apparatus and system for extracting configuration file from mirror image

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