Method, device, equipment and storage medium for improving application startup speed
By judging and optimizing the application's startup loading time and obtaining and storing matching startup loading information, the problem of long application startup time is solved, and the user experience and startup speed is improved.
Patent Information
- Application Number
- CN201910754712.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-08-15
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2039-08-15
AI Technical Summary
Existing applications load all functional modules at startup, resulting in a long startup time and affecting the user experience.
By obtaining the client's startup loading time, determine whether it is greater than the preset threshold. If it is greater, obtain the matching startup loading information, configure the functional modules that the application needs to run at startup, and send it to the client storage for the next time Load the program according to this information when starting.
Reduce the startup time of the application, improve the user experience, and significantly speed up the startup speed of the application by optimizing the loading order and number of functional modules.
Smart Images

Figure CN110688168B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of application function testing, and in particular to a method, device, equipment and storage medium for improving application startup speed. Background Art
[0002] When an application is enabled, all functional modules of the application are often loaded. For applications with more functional modules, this startup method often results in a long application startup time, or even severe freezes or crashes, which seriously affects the user experience. Summary of the invention
[0003] Based on this, it is necessary to provide a method, device, computer equipment and storage medium for improving the startup speed of application programs in order to reduce the startup time of application programs and improve the user experience in order to solve the above technical problems.
[0004] A method for improving application startup speed, comprising:
[0005] Get the startup loading time of the specified application on the client;
[0006] Determine whether the startup loading time is greater than a preset threshold;
[0007] If the startup loading time is greater than a preset threshold, then acquiring startup loading information matching the client, the startup loading information being used to configure a functional module that needs to be run when the specified application is started, the specified application including at least two functional modules;
[0008] The startup loading information is sent to the client for storage, so that the designated application program is started according to the startup loading information stored in the client when it is started next time.
[0009] A device for improving application startup speed, comprising:
[0010] Get loading time module, used to get the startup loading time of a specified application on the client;
[0011] A time judgment module, used to judge whether the startup loading time is greater than a preset threshold;
[0012] A matching loading information module, used for obtaining the startup loading information matching the client if the startup loading time is greater than a preset threshold, wherein the startup loading information is used for configuring the functional modules that the specified application needs to run when it is started, and the specified application includes at least two functional modules;
[0013] The loading information sending module is used to send the startup loading information to the client for storage, so that the designated application program can be started according to the startup loading information stored in the client when it is started next time.
[0014] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for improving the startup speed of an application program is implemented.
[0015] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for improving the startup speed of an application program is implemented.
[0016] The above-mentioned method, device, computer equipment and storage medium for improving the startup speed of an application program obtain the startup loading time of a specified application program on a client to collect the actual startup time of the specified application program, which can be used as a reference indicator for evaluating the specified application program. It is judged whether the startup loading time is greater than a preset threshold value to judge whether the startup loading time of the specified application program on the current client program is normal. If the startup loading time is greater than the preset threshold value, the startup loading information matching the client program is obtained, and the startup loading information is used to configure the functional modules that the specified application program needs to run when it is started. The specified application program includes at least two functional modules, so as to obtain startup loading information that is more suitable for the client program, and improve the startup speed of the specified application program on the client program. The startup loading information is sent to the client program for storage, so that the specified application program starts the program according to the startup loading information stored in the client program at the next startup. Since the startup loading information is updated, the loading speed of the specified application program will be greatly accelerated, and the startup loading time will also be greatly reduced, which greatly improves the user experience. The method for improving the startup speed of an application program proposed by the present invention reduces the startup time of the application program and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0018] Figure 1 is a schematic diagram of an application environment of a method for improving application startup speed in one embodiment of the present invention;
[0019] Figure 2is a flow chart of a method for improving application startup speed in one embodiment of the present invention;
[0020] Figure 3 is a flow chart of a method for improving application startup speed in one embodiment of the present invention;
[0021] Figure 4 is a flow chart of a method for improving application startup speed in one embodiment of the present invention;
[0022] Figure 5 is a flow chart of a method for improving application startup speed in one embodiment of the present invention;
[0023] Figure 6 is a flow chart of a method for improving application startup speed in one embodiment of the present invention;
[0024] Figure 7 is a flow chart of a method for improving application startup speed in one embodiment of the present invention;
[0025] Figure 8 is a flow chart of a method for improving application startup speed in one embodiment of the present invention;
[0026] Fig. 9 It is a structural schematic diagram of a device for improving application startup speed in one embodiment of the present invention;
[0027] Fig.10 is a schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0029] The method for improving the application startup speed provided in this embodiment can be applied to Figure 1 In an application environment, a client communicates with a server through a network. The client includes but is not limited to various personal computers, laptops, smart phones, tablet computers, and portable wearable devices. The server can be implemented with an independent server or a server cluster consisting of multiple servers.
[0030] In one embodiment, if Figure 2 As shown, a method for improving the startup speed of an application is provided, and the method is applied in Figure 1The server in the example is used as an example to illustrate the following steps:
[0031] S10, obtaining the startup loading time of a specified application on the client;
[0032] S20, determining whether the startup loading time is greater than a preset threshold;
[0033] S30: if the startup loading time is greater than a preset threshold, obtaining startup loading information matching the client, wherein the startup loading information is used to configure a functional module that needs to be run when the specified application is started, and the specified application includes at least two functional modules;
[0034] S40: Send the startup loading information to the client for storage, so that the designated application program starts the program according to the startup loading information stored in the client when it is started next time.
[0035] In this embodiment, the system running on the client may be a Windows system, a Mac OS system, an iOS system, an Android system, a Linux system, or other operating systems. The designated application refers to an application that can be run on an operating system, such as an EXE program running on a Windows system and an APK program on an Android system. In some cases, the designated application may also refer to some small programs attached to other applications, such as WeChat and Alipay small programs. The designated application may also be an interactive page based on Html5.
[0036] The startup loading time of a specified application may refer to the time taken from opening the specified application to fully loading the specified application. During the program testing phase, the startup loading time may be obtained by using a stopwatch test or a high-speed video camera test. The stopwatch test refers to the tester using a stopwatch to directly measure the startup loading time of the specified application, then entering the startup loading time into the computer and uploading it to the server. The high-speed video camera test records a video of the tester testing the specified application, and then parses the startup loading time of the specified application based on the video. In another case, the startup loading time of the specified application may also be measured using the compiler software of the operating system, such as determining the startup loading time of the specified application based on the client's memory usage.
[0037] The preset threshold can be set according to actual needs, such as 1 second or 3 seconds. Different preset thresholds can be set for different specified applications. Different preset thresholds can also be set for different client configurations. When the startup loading time is less than or equal to the preset threshold, it means that the startup speed of the specified application is normal and no further optimization is required. When the startup loading time is greater than the preset threshold, it means that the startup speed of the specified application is slow and further optimization is required.
[0038] Here, the specified application includes more than one functional module. The startup loading information is used to configure the functional modules that the specified application needs to run at startup, as well as the loading order of the functional modules. For example, in the Android system, the specified application can be divided into multiple dex files (i.e., functional modules), and each dex file corresponds to a functional page (class). The dex file refers to the binary executable file compiled and generated by the Android APK. In the Android APP, it includes code (dex file), resource files (res / asset / lib), and manifest files (one of the necessary files for the APK program to run). Among them, the dex file consists of binary code. Running each dex file requires loading the corresponding resource file, which will increase the occupancy of corresponding CPU, memory, GPU and other computing resources.
[0039] The boot loading information can be automatically generated by the server, or the operation and maintenance personnel of the specified application can adjust the original boot loading information according to the boot loading time uploaded by the client to generate new boot loading information. In some cases, the server can pre-store multiple different boot loading information, each boot loading information is adapted to the client with a specified boot loading time.
[0040] After the startup loading information is generated, the startup loading information is sent to the client. The client can save the startup loading information in a location associated with the specified application, such as the installation directory of the specified application, or the cache location of the specified application. When the specified application is restarted, the specified application will load the functional module set by the startup loading information and complete the startup process. At this time, the startup speed of the specified application will be greatly accelerated.
[0041] In steps S10-S40, the startup loading time of the specified application on the client is obtained to collect the actual startup time of the specified application, which can be used as a reference indicator for evaluating the specified application. It is determined whether the startup loading time is greater than a preset threshold to determine whether the startup loading time of the specified application on the current client is normal. If the startup loading time is greater than the preset threshold, the startup loading information matching the client is obtained. The startup loading information is used to configure the functional modules that the specified application needs to run when it is started. The specified application includes at least two functional modules to obtain startup loading information that is more suitable for the client and improve the startup speed of the specified application on the client. The startup loading information is sent to the client for storage, so that the specified application starts the program according to the startup loading information stored in the client at the next startup. Since the startup loading information is updated, the loading speed of the specified application will be greatly accelerated, and the startup loading time will also be greatly reduced, which greatly improves the user experience.
[0042] Optional, such as Figure 3 As shown, step S30 also includes:
[0043] S301, obtaining performance data of the client;
[0044] S302, acquiring a functional module matching the performance data;
[0045] S303: Generate the startup loading information according to the functional module matching the performance data.
[0046] In this embodiment, the performance data of the client may refer to the performance parameters of the client after being tested by the test software, such as the performance data obtained after the client is tested using the test software such as Antutu, Geekbench, Quadrant Advanced, Vellamo web benchmark, Nenamark, etc. In some cases, it is also possible to only obtain the configuration information of the client, and then generate the corresponding performance data based on the configuration information of the client. For example, the performance score of the configuration of a specified type can be set in advance, and after the configuration information of the client is obtained, the performance data of the client is calculated based on all the hardware configurations in the configuration information. Here, the configuration information of the client includes but is not limited to the CPU model, memory size, hard disk / flash memory size (including total disk space, used capacity, etc.), GPU model, and hardware usage time.
[0047] The correspondence between the functional modules and the performance data can be preset. For example, in a specified application, including functional modules AE, A is a necessary functional module, and the correspondence between the functional modules and the performance data can be set as shown in Table 1.
[0048] Table 1 Correspondence between the functional modules of the specified application and the performance data of the client
[0049] Performance Data Functional modules 0-1000 A 1001-2000 A. B 2001-3000 A.C 3001-4000 A, B, C 4001-5000 A, B, C, D More than 5000 A, B, C, D, E
[0050] After obtaining the function modules matching the performance data, corresponding startup loading information can be generated. If the function modules matching the performance data are modules A, B, and C, then in the startup loading information, it can be set that only modules A, B, and C are loaded when starting the specified application.
[0051] In steps S301-S303, the performance data of the client is obtained to determine the actual computing capacity of the client. Functional modules matching the performance data are obtained to select functional modules suitable for loading when the specified application is started. The startup loading information is generated according to the functional modules matching the performance data to generate new startup loading information to improve the startup speed of the specified application.
[0052] Optional, such as Figure 4 As shown, step S30 also includes:
[0053] S304, obtaining performance data of the client;
[0054] S305, inputting the performance data into a preset application startup time parsing model;
[0055] S306, obtaining output data output by the preset application startup time parsing model;
[0056] S307: Generate the startup loading information according to the output data.
[0057] In this embodiment, the performance data of the client may refer to the performance parameters of the client after being tested by the test software. If the operating system used by the client is the Android system, the performance parameters may include 3D performance, UX (user experience) performance, CPU performance and RAM performance. Each performance may include performance data of multiple sub-items. The preset application startup time parsing model may be an application startup time parsing model constructed based on the collected user device data. Each user device data includes device performance data, startup loading time, and functional modules loaded at startup. A classification algorithm may be selected to construct a preset application startup time parsing model, such as a classification algorithm that may be a decision tree algorithm or an algorithm based on Bayesian decision theory.
[0058] The preset application startup time parsing model can parse the corresponding output data according to the client's performance data. Here, the output data can be the best combination of functional modules for the specified application. After obtaining the output data output by the model, the optimized startup loading information can be generated based on the output data. The specified application starts the program according to the optimized startup loading information, and the program startup speed will be greatly accelerated, reducing the user's waiting time and optimizing the user experience.
[0059] In steps S304-S307, the performance data of the client is obtained to obtain the performance parameters of the client. The performance data is input into a preset application startup time parsing model to analyze the performance data of the client using a machine algorithm. The output data output by the preset application startup time parsing model is obtained to obtain the output result of the parsing model (i.e., the above-mentioned output data). The startup loading information is generated according to the output data to generate new startup loading information to improve the startup speed of the specified application.
[0060] Optional, such as Figure 5 As shown, step S10 includes:
[0061] S101, obtaining the startup time of the specified application;
[0062] S102, obtaining the loading completion time after the loading of the specified application is completed;
[0063] S103: Determine the time difference between the loading completion time and the startup time as the startup loading time.
[0064] In this embodiment, the startup time of the specified application and the loading completion time after loading are completed can be detected to determine the startup loading time of the specified application. Here, the startup time of the specified application refers to the time when the user opens the specified application. For example, in the Windows system, the user opens a specified application by double-clicking, and the time when the user double-clicks is the startup time of the specified application. At this time, in the application process of the task manager, the process corresponding to the specified application will be added, and the specified application may occupy one or more processes when it is running. After opening the specified application, it is usually necessary to wait for a certain period of time before the specified application can respond to the user's operation. The time point when the specified application starts to respond to the user's operation can be used as the loading completion time. When opening the specified application, the CPU occupancy rate, memory occupancy rate, and disk read and write speed will all have sudden changes. The startup time of the specified application and the loading completion time after loading are determined according to the change of the computing resources of the process occupied by the specified application, and then the time difference between the loading completion time and the startup time is calculated, and the obtained time difference is the startup loading time of the specified application.
[0065] In steps S101-S103, the startup time of the specified application is obtained to obtain the time when the user opens the specified application. The loading completion time after the specified application is loaded is obtained to obtain the time when the specified application completes loading. The time difference between the loading completion time and the startup time is determined as the startup loading time to obtain the time when the specified application actually completes startup.
[0066] Optional, such as Figure 6 As shown, step S30 also includes:
[0067] S31, obtaining usage data of the specified application;
[0068] S32, counting usage status of each functional module in the specified application according to the usage data, wherein the usage status includes the module usage sequence and / or the module usage times;
[0069] S33, determining the loading order of each functional module in the specified application according to the usage status of each functional module;
[0070] S34. Generate the startup loading information according to the loading order of the functional modules.
[0071] In this embodiment, the usage data of the specified application may refer to the operation record of the user using the specified application, such as the order in which the user uses each functional module, the duration of stay, etc.
[0072] According to the user's usage data, the usage status of each functional module (i.e., the user's usage habits) can be counted. Here, the usage status of each functional module includes the module usage order and / or the module usage times. ; The module usage order refers to the order in which the user uses the modules after the specified application is started. For example, user A is accustomed to using module C first, then module B, and user B is accustomed to using module B first, then module C. The module usage times refers to the number of times the user uses a specific module. For example, for user A, the number of times module B is used is 50, and the number of times module C is used is 5. Obviously, user A uses module B much more frequently than module C, so at startup, module B can be loaded first. For user B, the situation is just the opposite. The number of times module C is used is 20, and the number of times module B is used is 3. This is because user B uses module C much more frequently than module B, so at startup, module C can be loaded first. Therefore, the loading order of each functional module in the specified application can be determined according to the usage status of each functional module. It should be noted that the delayed loading method can be used here to increase the startup speed of the specified application. If module B is not often used, it can be delayed for 20s before loading. Some rarely used function modules may not be loaded, and are loaded only when the user clicks the indicator mark of the function module.
[0073] After obtaining the loading order of each functional module in the specified application, the startup loading information can be generated according to the loading order of each functional module. After obtaining the updated startup loading information, the specified application can load the corresponding functional modules in sequence according to the user's habitual operation mode, which greatly improves the loading speed of the specified application.
[0074] In steps S31-S34, the usage data of the designated application is obtained to understand the user's operating habits based on the usage data. The usage status of each functional module in the designated application is counted based on the usage data, and the usage status includes the module usage order and / or the module usage times, so as to extract multiple subdivided data from the usage data. The loading order of each functional module in the designated application is determined based on the usage status of each functional module to determine a more reasonable loading order. The startup loading information is generated based on the loading order of each functional module to generate new startup loading information, which improves the startup speed of the designated application while reducing the loading time of the functional modules that the user is accustomed to using.
[0075] Optional, such as Figure 7 As shown, before step S20, it includes:
[0076] S21, obtaining configuration information of the client;
[0077] S22. Determine the preset threshold according to the configuration information.
[0078] In this embodiment, the configuration information of the client may refer to the hardware configuration of the client, such as the CPU model, memory model, hard disk model, etc. The correspondence between the configuration information and the preset threshold value may be pre-set, and after the configuration information of the client is obtained, the preset threshold value of the client is determined according to the correspondence relationship. A client with a higher configuration (referring to a better performance of the hardware such as the CPU) has a lower preset threshold value; a client with a lower configuration (referring to a poor performance of the hardware such as the CPU) has a higher preset threshold value.
[0079] In steps S21-S22, the configuration information of the client is obtained to evaluate the computing capability of the client, and the preset threshold is determined according to the configuration information to set a suitable judgment threshold.
[0080] Optional, such as Figure 8 As shown, after step S40, the following steps are also included:
[0081] S50, receiving a secondary loading time of the designated application program according to the startup loading information when the designated application program is started next time;
[0082] S60, determining whether the secondary loading time is greater than the preset threshold;
[0083] S70: If the secondary loading time is greater than the preset threshold, a reminder message is sent to a designated terminal.
[0084] In this embodiment, the secondary loading time (i.e., the startup time) of the specified application at the next startup can be received. If the secondary loading time is greater than the preset threshold, it means that the startup speed of the specified application is slow and further adjustment is required. The designated terminal can be a device used by the operation and maintenance personnel of the specified application. By sending a reminder message to the designated terminal, the operation and maintenance personnel can check the user's device status in time, find out the reason why the specified application is slow to start, and propose corresponding solutions to improve the startup speed of the specified application.
[0085] In steps S50-S70, the secondary loading time of the designated application program according to the startup loading information is received when the designated application program is started next time, so as to obtain the secondary loading time of the designated application program after the startup loading information is updated. It is determined whether the secondary loading time is greater than the preset threshold value to detect whether the secondary loading time meets the standard. If the secondary loading time is greater than the preset threshold value, a reminder message is sent to the designated terminal. Since the secondary loading time after the startup loading information is updated is still not up to standard, the non-compliance information can be collected in time to find out the specific reason why the designated application program starts slowly.
[0086] The embodiment of the present invention obtains the startup loading time of the specified application on the client; determines whether the startup loading time is greater than a preset threshold; if the startup loading time is greater than the preset threshold, obtains startup loading information matching the client, the startup loading information is used to configure the functional modules that the specified application needs to run when it is started, and the specified application includes at least two functional modules; sends the startup loading information to the client for storage, so that the specified application starts the program according to the startup loading information stored in the client at the next startup. The method for improving the startup speed of the application proposed in the embodiment of the present invention reduces the startup time of the application and improves the user experience.
[0087] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0088] In one embodiment, a device for increasing the application startup speed is provided, and the device for increasing the application startup speed corresponds to the method for increasing the application startup speed in the above embodiment. Fig. 9 As shown, the device for improving the startup speed of an application program includes a loading time acquisition module 10, a time judgment module 20, a loading information matching module 30, and a loading information sending module 40. The detailed description of each functional module is as follows:
[0089] The loading time acquisition module 10 is used to acquire the startup loading time of a specified application on the client;
[0090] A time judgment module 20 is used to judge whether the startup loading time is greater than a preset threshold;
[0091] A matching loading information module 30, configured to obtain the startup loading information matching the client if the startup loading time is greater than a preset threshold, wherein the startup loading information is used to configure the functional modules that the specified application needs to run when it is started, and the specified application includes at least two functional modules;
[0092] The loading information sending module 40 is used to send the startup loading information to the client for storage, so that the designated application program can be started according to the startup loading information stored in the client when it is started next time.
[0093] Optionally, the matching loading information module 30 includes:
[0094] A performance data acquisition unit, used to acquire the performance data of the client;
[0095] An acquisition function module unit, used to acquire a function module matching the performance data;
[0096] The first generating unit is used to generate the startup loading information according to the functional module matching the performance data.
[0097] Optionally, the matching loading information module 30 further includes:
[0098] A performance data acquisition unit, used to acquire the performance data of the client;
[0099] An input model unit, used for inputting the performance data into a preset application startup time parsing model;
[0100] An output data acquisition unit, used for acquiring output data output by the preset application startup time parsing model;
[0101] The second generating unit is used to generate the startup loading information according to the output data.
[0102] Optionally, the module for obtaining loading time includes:
[0103] Obtaining a startup time unit, used to obtain the startup time of the specified application;
[0104] Obtaining a loading completion time unit, used to obtain the loading completion time after the loading of the specified application is completed;
[0105] The startup loading time determining unit is used to determine the time difference between the loading completion time and the startup time as the startup loading time.
[0106] Optionally, the matching loading information module 30 further includes:
[0107] A usage data acquisition unit, used to acquire usage data of the specified application;
[0108] An information extraction unit is used to collect statistics on the usage status of each functional module in the specified application program according to the usage data, wherein the usage status includes the usage order of the modules and / or the number of module usages;
[0109] A loading order determination unit, used to determine the loading order of each functional module in the specified application according to the usage status of each functional module;
[0110] The third generating unit is used to generate the startup loading information according to the loading order of each functional module.
[0111] Optionally, the device for improving the application startup speed further includes:
[0112] A configuration information acquisition module, used to acquire the configuration information of the client;
[0113] A threshold determination module is used to determine the preset threshold according to the configuration information.
[0114] Optionally, the device for improving the application startup speed further includes:
[0115] A secondary loading time receiving module is used to receive the secondary loading time of the designated application program when it is started next time according to the startup loading information;
[0116] A secondary loading time judgment module, used to judge whether the secondary loading time is greater than the preset threshold;
[0117] The reminder module is used to send a reminder message to a designated terminal if the secondary loading time is greater than the preset threshold.
[0118] The specific definition of the device for improving the application startup speed can be found in the above definition of the method for improving the application startup speed, which will not be repeated here. Each module in the above-mentioned device for improving the application startup speed can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0119] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data involved in the method for improving the startup speed of an application. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for improving the startup speed of an application is implemented.
[0120] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0121] Get the startup loading time of the specified application on the client;
[0122] Determine whether the startup loading time is greater than a preset threshold;
[0123] If the startup loading time is greater than a preset threshold, then acquiring startup loading information matching the client, the startup loading information being used to configure a functional module that needs to be run when the specified application is started, the specified application including at least two functional modules;
[0124] The startup loading information is sent to the client for storage, so that the designated application program is started according to the startup loading information stored in the client when it is started next time.
[0125] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0126] Get the startup loading time of the specified application on the client;
[0127] Determine whether the startup loading time is greater than a preset threshold;
[0128] If the startup loading time is greater than a preset threshold, then acquiring startup loading information matching the client, the startup loading information being used to configure a functional module that needs to be run when the specified application is started, the specified application including at least two functional modules;
[0129] The startup loading information is sent to the client for storage, so that the designated application program is started according to the startup loading information stored in the client when it is started next time.
[0130] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0131] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0132] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A method for improving the startup speed of an application program, applied on a server, characterized in that: include: Get the startup loading time of the specified application on the client; Determine whether the startup loading time is greater than a preset threshold; If the startup loading time is greater than a preset threshold, then acquiring startup loading information matching the client, the startup loading information being used to configure a functional module that needs to be run when the specified application is started, the specified application including at least two functional modules; The server pre-stores a plurality of different startup loading information, each startup loading information is adapted to the client that specifies the startup loading duration; Sending the startup loading information to the client for storage, so that the designated application program starts the program according to the startup loading information stored in the client the next time the program is started; The obtaining of the startup loading information matching the client further includes: Obtaining performance data of the client; Acquire a functional module matching the performance data; Generate the startup loading information according to the functional module matching the performance data; The obtaining of the startup loading information matching the client further includes: Obtaining performance data of the client; Inputting the performance data into a preset application startup time parsing model; Obtaining output data output by the preset application startup time parsing model; The startup loading information is generated according to the output data.
2. The method for improving the application startup speed according to claim 1, characterized in that: The step of obtaining the startup loading time of a specified application on the client includes: Obtaining the startup time of the specified application; Obtaining the loading completion time after the specified application is loaded; The time difference between the loading completion time and the startup time is determined as the startup loading time.
3. The method for improving the application startup speed according to claim 1, characterized in that: The obtaining of the startup loading information matching the client further includes: Obtaining usage data of the specified application; Counting usage status of each functional module in the specified application according to the usage data, wherein the usage status includes the module usage sequence and / or the module usage times; Determine the loading order of each functional module in the specified application according to the usage status of each functional module; The startup loading information is generated according to the loading order of the functional modules.
4. The method for improving the application startup speed according to claim 1, characterized in that: The determining whether the startup loading time is greater than a preset threshold comprises: Obtaining configuration information of the client; The preset threshold is determined according to the configuration information.
5. The method for improving application startup speed according to claim 1, characterized in that: After sending the startup loading information to the client for storage so that the designated application program starts the program according to the startup loading information stored in the client the next time the designated application program is started, the method further includes: receiving a secondary loading time of the designated application program when the designated application program is started next time according to the startup loading information; Determining whether the secondary loading time is greater than the preset threshold; If the secondary loading time is greater than the preset threshold, a reminder message is sent to a designated terminal.
6. A device for improving the startup speed of an application program, applied on a server, characterized in that: include: Get loading time module, used to get the startup loading time of a specified application on the client; A time judgment module, used to judge whether the startup loading time is greater than a preset threshold; A matching loading information module, used for obtaining the startup loading information matching the client if the startup loading time is greater than a preset threshold, wherein the startup loading information is used for configuring the functional modules that the specified application needs to run when it is started, and the specified application includes at least two functional modules; The server pre-stores a plurality of different startup loading information, each startup loading information is adapted to the client that specifies the startup loading duration; A loading information sending module, used for sending the startup loading information to the client for storage, so that the designated application program starts the program according to the startup loading information stored in the client when it is started next time; The matching loading information module includes: A performance data acquisition unit, used to acquire the performance data of the client; An acquisition function module unit, used to acquire a function module matching the performance data; A first generating unit, configured to generate the startup loading information according to the functional module matching the performance data; The matching loading information module also includes: A performance data acquisition unit, used to acquire the performance data of the client; An input model unit, used for inputting the performance data into a preset application startup time parsing model; An output data acquisition unit, used for acquiring output data output by the preset application startup time parsing model; The second generating unit is used to generate the startup loading information according to the output data.
7. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for improving the application startup speed as described in any one of claims 1 to 5 is implemented.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for improving the application startup speed as claimed in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
A management method and apparatus based on startup items
CN102298532A
Management method and device of starting up projects
CN102981863A
Page loading method, device and apparatus, and storage medium
CN109359256A
Application starting method, terminal and computer readable storage medium
CN110099166A