Application resource preloading method and device, electronic equipment and storage medium

By optimizing the preloading method of smart cockpit software, combining the current status of the system and predicted use resources, the preloading timing and resource recycling processing are optimized, and the problems of waste of system resources during cold start and the problem of long waiting time for users is solved, and rapid start-up is achieved and efficient resource management.

CN119396582APending Publication Date: 2025-02-07ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411484634.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

The existing smart cockpit software is wasted due to invalid preloading during cold startup, and is not preloaded in combination with the current system status, and does not clarify the resource release logic, resulting in too long waiting time for users and unsmooth system response.

Method used

By redetermining the preload target determination method, optimizing the timing of preloading execution, and recycling failed preload resources, a preset algorithm set is used to predict the startup priority of the application to be started, a priority list is obtained, and the system's current remaining Resources and predictive use resources, resource preloading is carried out in order of priority from high to low.

Benefits of technology

It improves the accuracy of resource preloading, reduces the impact of preloading actions on the current running system, reduces user waiting time, and improves system response speed and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119396582A_ABST
    Figure CN119396582A_ABST
Patent Text Reader

Abstract

The invention discloses an application resource preloading method and device, electronic equipment and a storage medium, and the method comprises the steps: predicting the priority of a to-be-started application for resource preloading according to a preset algorithm set, so as to obtain a priority list of the to-be-started application for resource preloading, the preset algorithm set comprises a plurality of preset decision algorithms, and the preset decision algorithms comprise a plurality of preset decision algorithms; and obtaining predicted use resources for resource preloading of the to-be-started applications in the priority list, and according to the priority list, the current residual resources of the system and the predicted use resources, carrying out resource preloading on the to-be-started applications in the priority list in a sequence from high priority to low priority. According to the application resource preloading method, a judgment method of the preloading target is re-determined, the opportunity for executing preloading is optimized, the invalid preloading resources are recycled, the resource preloading accuracy is improved, and the application resource preloading efficiency is improved while the target of quick starting is achieved. And the influence of resource preloading on the current running system is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of electronic technology, and in particular relates to an application resource preloading method, device, electronic equipment and storage medium. Background Art

[0002] With the development of automobiles in recent years, smart cockpit products have entered a new stage. In addition to the usual car control functions, a large number of in-vehicle applications with rich functions and various forms have been incorporated to meet the diverse needs of users. In-vehicle applications need to load various initial resources during the cold start process, which often takes a long startup time, causing users to have to wait until the in-vehicle application startup resources are loaded before they can proceed to the formal interactive page and start normal user operations. The entire user waiting process is related to the resources that the application depends on, and usually takes several seconds or even more than ten seconds. As the complexity of the application increases, the need to load resources will inevitably increase. How to strike a balance between cold start time, user waiting time and user experience has also become an important topic in the development of smart cockpit software.

[0003] The existing quick start solution for applications does not take into account the current load of system resources, nor does it evaluate the system resources required for preloading. Instead, it directly starts the background preloading process. In a scenario where there is no reasonable coordination, if the current system is already short of system resources, it may cause further consumption of system resources, reduce the response speed of running programs, and in severe cases, may cause unsmooth interactions and freezes. In addition, there is no unified design for the number of preloaded applications and the subsequent processing of invalid preloaded resources, and the solution is not comprehensive enough. If the invalid preloaded data is not cleaned up for a long time, it will slowly consume system resources, causing additional burden on the system. Summary of the invention

[0004] The purpose of the present invention is to provide an application resource preloading method, device, electronic device and storage medium, which solves the technical problems of existing solutions such as waste of system resources due to invalid preloading, failure to combine preloading with the current state of the system and unclear resource release logic by redefining the determination method of the preloading target, optimizing the timing of executing preloading and recycling failed preloading resources.

[0005] To solve the above technical problems, the present invention is achieved through the following technical solutions:

[0006] The present invention provides an application resource preloading method, which comprises:

[0007] Predicting the startup priority of the application to be started according to a preset algorithm set to obtain a priority list for preloading resources for the application to be started, wherein the preset algorithm set includes several preset decision algorithms;

[0008] Obtain predicted usage resources for resource preloading of each of the to-be-started applications in the priority list;

[0009] According to the priority list, the current remaining resources of the system and the predicted used resources, resources are preloaded for each of the to-be-started applications in the priority list in descending order of priority.

[0010] In one embodiment of the present invention, predicting the startup priority of the to-be-started application according to the preset algorithm set to obtain a priority list for preloading resources for the to-be-started application includes:

[0011] respectively collecting user characteristic data corresponding to each of the preset decision algorithms;

[0012] Execute corresponding preset decision algorithms according to different user feature data to obtain decision scores of each application to be started under different preset decision algorithms;

[0013] Performing weighted calculation on the decision scores of each of the to-be-started applications under different preset decision algorithms to obtain a total decision score of each of the to-be-started applications;

[0014] A priority list for preloading resources for the applications to be started is obtained according to the total decision scores of the applications to be started.

[0015] In one embodiment of the present invention, obtaining a priority list of resources preloading for the applications to be started according to the total decision scores of the applications to be started includes:

[0016] Sorting the to-be-started applications in descending order according to the total decision scores to obtain a priority list for preloading resources for the to-be-started applications;

[0017] The higher the total decision score of the application to be started is, the higher its priority for resource preloading is.

[0018] In one embodiment of the present invention, preloading resources for each application to be started in the priority list in descending order of priority according to the priority list, the current remaining resources of the system and the predicted used resources comprises:

[0019] For the target application to be started in the priority list, determining whether the current remaining resources of the system meet the preloading condition of the target application to be started;

[0020] If yes, preload resources for the target application to be started. When the resource preloading is completed, update the current remaining resources of the system, and use the next priority application to be started of the current target application to be started in the priority list as the new target application to be started;

[0021] If not, returning to the step of determining whether the current remaining resources of the system meet the preloading condition of the target application to be started after a delay of the first preset time;

[0022] The preloading condition of the target application to be started includes that the difference between the current remaining resources of the system and the predicted usage resources for preloading the target application to be started is greater than a normal resource threshold of the system.

[0023] In one embodiment of the present invention, the application resource preloading method further includes: updating the preset algorithm set according to user interaction instructions, and predicting the startup priority of the application to be started according to the updated preset algorithm set to update the priority list for resource preloading of the application to be started.

[0024] In one embodiment of the present invention, predicting the startup priority of the to-be-started application according to the preset algorithm set to obtain a priority list for preloading resources for the to-be-started application includes:

[0025] The startup priority of the to-be-started application is re-predicted according to the preset algorithm set at a preset period to update the priority list for preloading resources of the to-be-started application.

[0026] In one embodiment of the present invention, the application resource preloading method further includes:

[0027] Obtaining the ranking of the to-be-started application currently undergoing resource preloading and / or the to-be-started application that has completed resource preloading in the updated priority list;

[0028] Determine whether the ranking of the to-be-started application currently undergoing resource preloading and / or the to-be-started application that has completed resource preloading in the updated priority list is lower than a preset ranking value;

[0029] If yes, the preloaded resources corresponding to the to-be-started application currently performing resource preloading and / or the to-be-started application that has completed resource preloading are released.

[0030] In one embodiment of the present invention, the application resource preloading method further includes:

[0031] Detecting the duration after the application to be started completes resource preloading;

[0032] When the duration after the to-be-started application completes resource preloading and is not used by the user exceeds a second preset time, the preloaded resources corresponding to the to-be-started application are released.

[0033] Based on the same inventive concept, the present invention also provides an application resource preloading device, the device comprising:

[0034] A decision module, used to predict the startup priority of the application to be started according to a preset algorithm set to obtain a priority list for resource preloading of the application to be started, wherein the preset algorithm set includes several preset decision algorithms;

[0035] A resource preloading module, used to obtain predicted usage resources for resource preloading of each to-be-started application in the priority list, and preload resources for each to-be-started application in the priority list in descending order of priority according to the priority list, the current remaining resources of the system and the predicted usage resources;

[0036] The resource recovery module is used to release the preloaded resources corresponding to the application to be started that is currently preloading resources and / or the application to be started that has completed resource preloading according to the priority change of each application to be started in the priority list.

[0037] Based on the same inventive concept, the present invention further provides an electronic device, the electronic device comprising:

[0038] one or more processors;

[0039] A storage device is used to store one or more programs, and when the one or more programs are executed by the one or more processors, the electronic device implements any of the above-mentioned application resource preloading methods.

[0040] Based on the same inventive concept, the present invention also provides a computer-readable storage medium, characterized in that a computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer executes any of the above-mentioned application resource preloading methods.

[0041] The present invention provides an application resource preloading method, which predicts the priority of resource preloading for applications to be started according to a preset algorithm set to obtain a priority list for resource preloading for the applications to be started, wherein the preset algorithm set includes several preset decision algorithms, and the predicted resource usage of each application to be started in the priority list is obtained. According to the priority list, the current remaining resources of the system and the predicted resource usage, resources are preloaded for each application to be started in the priority list in order from high to low priority. The application resource preloading method of the present invention adopts a combination of several prediction strategies, performs weighted processing on the prediction results corresponding to each prediction strategy, and finally obtains a comprehensive prediction result. For the formulation of the prediction strategy, a user selection entrance can be provided, and the user can adaptively adjust the strategy according to his or her own inclination. In addition, the strategy level is also dynamic, and an extension interface is reserved when the system is customized to facilitate dynamic expansion in the later stage.

[0042] After determining the target application to be preloaded, the preload is not performed immediately. Instead, the current real-time status of the system and the predicted resources used by the target application to be preloaded are first confirmed, and then whether to perform the preload immediately is comprehensively determined. If there is a possibility of affecting the system, the preload action is delayed; if the system resources meet the requirements, the resource preload of the target application to be preloaded is automatically started. By monitoring and predicting the system resources and preload resources, it is ensured that the preload action does not affect the normal operation of the system.

[0043] In addition, the application resource preloading method described in the present invention also includes recycling failed preloading resources. When the prediction result misses, the preloading resources of the ranked inactive applications will be released from the system based on the changes in the preloading target and the current consumption of the system to ensure the efficiency of preloading and the rational use of system resources.

[0044] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below 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 work.

[0046] Figure 1 A flowchart of an application resource preloading method provided by an exemplary embodiment of the present application.

[0047] Figure 2A schematic diagram of a flow chart of priority prediction of resource preloading for an application to be started provided by an exemplary embodiment of the present application.

[0048] Figure 3 A schematic diagram of a flow chart of updating a preset algorithm set provided by an exemplary embodiment of the present application.

[0049] Figure 4 A schematic diagram of a process of executing resource preloading for a target to-be-started application provided by an exemplary embodiment of the present application.

[0050] Figure 5 A schematic diagram of a process for resource recycling of an application to be started provided by an exemplary embodiment of the present application.

[0051] Figure 6 A schematic diagram of a process for recycling resources for an application to be started provided in another embodiment of the present application.

[0052] Figure 7 A schematic structural diagram of an application resource preloading device provided by another exemplary embodiment of the present application.

[0053] Figure 8 A schematic structural diagram of an electronic device provided for another exemplary embodiment of the present application. DETAILED DESCRIPTION

[0054] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0055] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0056] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.

[0057] Cold start refers to the start-up operation when a user opens an application for the first time, or when the application is opened again after it has been completely closed. The cold start application needs to reload all the resources and data of the application (for ease of description, the following embodiments will collectively refer to the resources and data that need to be loaded as resources). In the field of vehicle-mounted applications, the cold start of vehicle-mounted applications refers to the process in which the vehicle-mounted system (such as vehicle-mounted navigation, entertainment system, intelligent interconnection system, etc.) enters a dormant or closed state after being unused for a long time or the vehicle is turned off. When the vehicle is started again or the vehicle-mounted system is awakened, these applications need to be reloaded and initialized to restore to an operational state. When the vehicle-mounted application is cold started, the necessary programs and data need to be reloaded from the storage device (such as a hard disk, flash memory) to restore the application's functions. After loading is completed, the application will perform a series of initialization operations, including checking the system configuration, network connection status, etc., to ensure that the application can run normally. Compared with a hot start (i.e., the system is not completely shut down, but just a quick recovery after entering a dormant state), a cold start takes longer to complete the loading and initialization process.

[0058] Since in-vehicle applications often need to load a large amount of initial resources during the cold start process, there will be a startup time that takes several seconds or even more than ten seconds. During this period, users need to wait until the in-vehicle application startup resources are loaded before they can start normal user operations. The user waiting time depends on the number of resources that the startup application depends on and the resource loading speed. Too long a waiting time when the application starts will greatly reduce the user's experience of the smoothness of the car system.

[0059] In order to solve the technical problems of the existing application startup solutions, such as the waste of system resources due to invalid preloading, the failure to combine resource preloading with the current state of the system, and the lack of clear resource release logic, the present invention provides an application resource preloading method, which improves the accuracy of preloading by re-determining the determination method of the preloading target, optimizing the timing of executing preloading, and recycling the invalid preloading resources. While achieving the goal of fast startup, it reduces the impact of the preloading action on the current running system. Figure 1 As shown, the application resource preloading method includes the following steps:

[0060] S100: predicting the startup priority of the application to be started according to a preset algorithm set to obtain a priority list of resources preloading for the application to be started, wherein the preset algorithm set includes a plurality of preset decision algorithms;

[0061] S200: Obtaining predicted usage resources for resource preloading of each to-be-started application in the priority list;

[0062] S300: Preloading resources for each application to be started in the priority list in descending order of priority according to the priority list, current remaining resources of the system and predicted used resources.

[0063] The steps of the above-mentioned application resource preloading method will be discussed in detail below.

[0064] First, step S100 is executed, that is, predicting the startup priority of the application to be started according to the preset algorithm set to obtain a priority list of resources preloading for the application to be started, and the preset algorithm set includes several preset decision algorithms.

[0065] In an exemplary embodiment of the present application, step S100, i.e. predicting the startup priority of the application to be started according to the preset algorithm set to obtain a priority list for resource preloading of the application to be started, further includes the following steps:

[0066] S101: Collecting user feature data corresponding to each preset decision algorithm respectively;

[0067] S102: executing corresponding preset decision algorithms according to different user feature data to obtain decision scores of each application to be started under different preset decision algorithms;

[0068] S103: performing weighted calculation on the decision scores of each application to be started under different preset decision algorithms to obtain a total decision score of each application to be started;

[0069] S104: Obtain a priority list of resources preloading for the applications to be started according to the total decision scores of the applications to be started.

[0070] For details, please refer to Figure 2 As shown, after the system is started, the application quick start program starts automatically and creates a process to run the decision module. The decision module process starts and determines whether the decision option is turned on. If not, the current process ends and exits; if yes, the decision algorithm library is loaded and the decision timer is started. It should be noted that since real-time prediction of the startup priority of the application to be started will greatly consume system resources, in this embodiment, the decision timer is used to enable the system to predict the startup priority of the application to be started according to a preset period.

[0071] Next, determine whether the preset calculation cycle is reached. If so, execute steps S101 and S102 in sequence, that is, respectively collect user feature data corresponding to each preset decision algorithm, execute each preset decision algorithm and record the decision score of each application to be started under different preset decision algorithms.

[0072] Next, it is determined whether there is a preset decision algorithm in the preset algorithm set that has not been executed. If yes, the process returns to step S101 to execute the corresponding preset decision algorithm.

[0073] When all the preset decision algorithms in the preset algorithm set are executed, step S103 is executed, that is, weighted calculation is performed on the decision scores of each application to be started under different preset decision algorithms to obtain the total decision score of each application to be started.

[0074] Finally, step S104 is executed, that is, a priority list of resource preloading for the applications to be started is obtained according to the total decision scores of the applications to be started.

[0075] In an exemplary embodiment of the present application, in step S104, obtaining a priority list of resources preloading for the applications to be started according to the total decision scores of the applications to be started includes:

[0076] According to the total decision score, the applications to be started are sorted in descending order to obtain a priority list of resource preloading for the applications to be started. The higher the total decision score of the application to be started, the higher its priority for resource preloading.

[0077] It should be noted that the system can complete the formulation of the preloading strategy by interacting with the user. The user can interactively select the prediction algorithm set to be used. The preset algorithm set includes several preset decision algorithms. The prediction decision algorithms include but are not limited to real-time user action analysis, historical usage data analysis, user feature analysis, cloud big data analysis, etc. The user can select one or more preset decision algorithms in the preloading strategy formulation interface and save the set results in the formulation of the preloading strategy. Using different preset decision algorithms to predict the startup priority of the application to be started may result in different prediction results. For example, real-time user action analysis includes real-time prediction based on user sliding actions. The decision algorithm extracts effective information from user operations, predicts the applications that the user may start based on the sliding path and page information, and preloads resources in real time and in a targeted manner based on the prediction results. For historical usage data analysis, the decision algorithm collects the number of consecutive startups of the application within a period of time, sorts the unstarted applications according to the startup time and frequency, and determines the resource preloading order based on the order of sorting. In this example, the user can interactively select different preset decision algorithms to form a preset algorithm set, and comprehensively predict the startup priority of the application to be started based on the preset algorithm set. The prediction result has a high hit rate, thereby avoiding the waste of system resources due to invalid preloading.

[0078] In an exemplary embodiment of the present application, please refer to Figure 3As shown, the application resource preloading method also includes updating the preset algorithm set according to user instructions, and predicting the startup priority of the application to be started according to the updated preset algorithm set, so as to update the priority list of resource preloading for the application to be started. Specifically, after the system is started, the user can update the decision algorithm set through the interactive interface, and the setting application interface can obtain the supported decision algorithm set and the currently used preset decision algorithm from the decision module, and display them to the user through the setting interface. The user makes a single or multiple selections for the preset decision algorithm according to his or her own preferences. Determine whether the decision option is turned on. If so, a decision action is triggered immediately, and the new preset algorithm set will be used for decision making during the decision process; if not, the execution is completed.

[0079] After step S100 is completed, step S200 is executed to obtain the predicted usage resources for resource preloading of each application to be started in the priority list.

[0080] For details, please refer to Figure 4 As shown, after the system is started, the preloading execution program is started. The preloading execution program will create a separate thread to monitor the priority changes of the applications to be started in the priority list, and determine whether the applications to be started predicted to be preloaded with resources in the priority list are consistent with the target application currently executing resource preloading. If so, continue to monitor the priority changes of the applications to be started in the priority list; if not, obtain the current remaining resources of the system and obtain a static program resource data list from the database, wherein the program resource data list includes the central processing unit (CPU), graphics processing unit (GPU), memory, neural network processing unit (NPU), IO cache, etc., which are provided by the applications to be started. The startup resource consumption statistics provided by the applications to be started are used as the predicted usage resources for the corresponding applications to be started for resource preloading.

[0081] Finally, step S300 is executed, that is, according to the priority list, the current remaining resources of the system and the predicted used resources, resources are preloaded for each application to be started in the priority list in descending order of priority.

[0082] In an exemplary embodiment of the present application, step S300, i.e., preloading resources for each application to be started in the priority list in descending order of priority according to the priority list, the current remaining resources of the system, and the predicted used resources, further includes:

[0083] S301: for a target application to be started in the priority list, determining whether the current remaining resources of the system meet the preloading condition of the target application to be started;

[0084] S302: If yes, preload resources for the target application to be started. When the resource preloading is completed, update the current remaining resources of the system, and use the next priority application to be started of the current target application to be started in the priority list as the new target application to be started;

[0085] S303: If not, return to step S301 after a delay of the first preset time, that is, return to the step of determining whether the current remaining resources of the system meet the preloading condition of the target application to be started;

[0086] The preloading condition of the target application to be started includes that the difference between the current remaining resources of the system and the predicted usage resources of the target application to be started for preloading is greater than a normal resource threshold of the system.

[0087] For details, please refer to Figure 4 As shown, for the applications to be started in the priority list, it is determined whether the difference between the current remaining resources of the system and the predicted usage resources for preloading the target application to be started is greater than the normal resource threshold of the system. If so, the resource preloading of the current target application to be started is executed immediately, and the corresponding preloading resource management address is retained; if not, the resource preloading execution is terminated, and after a delay of the first preset time, it is re-determined whether the difference between the current remaining resources of the system and the predicted usage resources for preloading the target application to be started is greater than the normal resource threshold of the system.

[0088] In an exemplary embodiment of the present application, the startup priority of the to-be-started application is re-predicted according to a preset algorithm set at a preset period to update the priority list for resource preloading of the to-be-started application.

[0089] It should be noted that after the system is started, the resource recovery program starts automatically, and the preloading execution program will create a separate thread to monitor the priority changes of the applications to be started in the priority list. When the application to be started predicted to be preloaded with resources in the priority list is inconsistent with the target application currently executing resource preloading, or the application to be started has not been used for a period of time exceeding the second preset time after completing resource preloading, resource recovery execution is triggered. Among them, resource recovery includes finding the management address of the preloaded resources corresponding to the application to be started, and releasing the corresponding preloaded resources one by one.

[0090] In an exemplary embodiment of the present application, please refer to Figure 5As shown, the resource recovery program starts automatically, monitors the priority changes of the applications to be started in the priority list, obtains the ranking of the applications to be started that are currently undergoing resource preloading and / or the applications to be started that have completed resource preloading in the updated priority list, and determines whether the ranking of the applications to be started that are currently undergoing resource preloading and / or the applications to be started that have completed resource preloading in the updated priority list is lower than the preset ranking value. If so, release the preloaded resources corresponding to the applications to be started that are currently undergoing resource preloading and / or the applications to be started that have completed resource preloading. If not, continue to monitor the priority changes of the applications to be started in the priority list.

[0091] In an exemplary embodiment of the present application, please refer to Figure 6 As shown, the resource recovery program starts automatically, detects the duration of the application to be started that has completed preloading, and determines whether the duration of the application to be started after completing resource preloading exceeds a second preset time without being used by the user. If so, release the corresponding preloaded resources for the application to be started; if not, continue to detect the duration of the application to be started that has completed preloading.

[0092] In summary, the present invention provides an application resource preloading method, which predicts the startup priority of the application to be started according to a preset algorithm set to obtain a priority list for resource preloading of the application to be started, the preset algorithm set includes several preset decision algorithms, and the predicted usage resources of each application to be started in the priority list for resource preloading are obtained. According to the priority list, the current remaining resources of the system and the predicted usage resources, the resources of each application to be started in the priority list are preloaded in order from high to low priority. The application resource preloading method of the present invention improves the accuracy of resource preloading, and while achieving the goal of fast startup, reduces the impact of resource preloading on the current running system. Specifically, by adopting a combination of several prediction strategies, the prediction results corresponding to each prediction strategy are weighted, and finally a comprehensive prediction result is obtained. For the formulation of the prediction strategy, a user selection entrance can be provided, and the user can adaptively adjust the strategy according to his own inclination. In addition, the strategy level is also dynamic, and an extension interface is reserved when the system is customized to facilitate dynamic expansion in the later stage.

[0093] After determining the target application to be preloaded, the preload is not performed immediately. Instead, the current real-time status of the system and the predicted resources used by the target application to be preloaded are first confirmed, and then whether to perform the preload immediately is comprehensively determined. If there is a possibility of affecting the system, the preload action is delayed; if the system resources meet the requirements, the resource preload of the target application to be preloaded is automatically started. By monitoring and predicting the system resources and preload resources, it is ensured that the preload action does not affect the normal operation of the system.

[0094] In addition, the application resource preloading method described in the present invention also includes recycling failed preloading resources. When the prediction result misses, the preloading resources of the ranked inactive applications will be released from the system based on the changes in the preloading target and the current consumption of the system to ensure the efficiency of preloading and the rational use of system resources.

[0095] Based on the same inventive concept, please refer to Figure 7 As shown, another embodiment of the present invention further provides an application resource preloading device 11, the device comprising:

[0096] A decision module 111 is used to predict the priority of resource preloading for the application to be started according to a preset algorithm set to obtain a priority list of resource preloading for the application to be started, wherein the preset algorithm set includes several preset decision algorithms;

[0097] The resource preloading module 112 is used to obtain the predicted resource usage of each application to be started in the priority list for resource preloading, and preload resources for each application to be started in the priority list in descending order of priority according to the priority list, the current remaining resources of the system and the predicted resource usage;

[0098] The resource recovery module 113 is used to release the preloaded resources corresponding to the application to be started that is currently preloading resources and / or the application to be started that has completed resource preloading according to the priority change of each application to be started in the priority list.

[0099] It should be noted that the application resource preloading device 11 includes the application resource preloading method described in any of the above embodiments. Since the application resource preloading device 11 provided in this embodiment belongs to the same inventive concept as the application resource preloading method provided in any of the above embodiments, it has at least the same beneficial effects as the application resource preloading method, and will not be described one by one here.

[0100] Based on the same inventive concept, please refer to Figure 8 As shown, another embodiment of the present invention further provides an electronic device 1, which may include a memory 12, a processor 13 and a bus, and may also include a computer program stored in the memory 12 and executable on the processor 13, such as an application resource preloading program.

[0101] Among them, the memory 12 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 12 can be an internal storage unit of the electronic device 1, such as a mobile hard disk of the electronic device 1. In other embodiments, the memory 12 can also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 1. Further, the memory 12 can also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 12 can not only be used to store application software and various types of data installed in the electronic device 1, such as application resource preloading code, etc., but also can be used to temporarily store data that has been output or is to be output.

[0102] In some embodiments, the processor 13 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 13 is the control core (Control Unit) of the electronic device 1, and uses various interfaces and lines to connect various components of the entire electronic device 1, and executes or executes programs or modules (such as application resource preloading programs, etc.) stored in the memory 12, and calls data stored in the memory 12 to execute various functions of the electronic device 1 and process data.

[0103] The processor 13 executes the operating system and various installed application programs of the electronic device 1. The processor 13 executes the application programs to implement the steps in the above-mentioned application resource preloading method.

[0104] Exemplarily, the computer program may be divided into one or more modules, which are stored in the memory 12 and executed by the processor 13 to complete the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the electronic device 1. For example, the computer program may be divided into a decision module 111, a resource preloading module 112, and a resource recovery module 113.

[0105] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium, and the computer-readable storage medium can be non-volatile or volatile. The above-mentioned software function module is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a computer device, or a network device, etc.) or a processor to perform part of the functions of the application resource preloading method described in each embodiment of the present application.

[0106] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A method for preloading application resources, characterized in that: include: Predicting the startup priority of the application to be started according to a preset algorithm set to obtain a priority list for preloading resources for the application to be started, wherein the preset algorithm set includes several preset decision algorithms; Obtain predicted usage resources for resource preloading of each of the to-be-started applications in the priority list; According to the priority list, the current remaining resources of the system and the predicted used resources, resources are preloaded for each of the to-be-started applications in the priority list in descending order of priority.

2. The method for preloading application resources according to claim 1, characterized in that: The step of predicting the startup priority of the application to be started according to the preset algorithm set to obtain a priority list for preloading resources for the application to be started includes: respectively collecting user characteristic data corresponding to each of the preset decision algorithms; Execute corresponding preset decision algorithms according to different user feature data to obtain decision scores of each application to be started under different preset decision algorithms; Performing weighted calculation on the decision scores of each of the to-be-started applications under different preset decision algorithms to obtain a total decision score of each of the to-be-started applications; A priority list for preloading resources for the applications to be started is obtained according to the total decision scores of the applications to be started.

3. The method for preloading application resources according to claim 2, characterized in that: The step of obtaining a priority list of resources preloading for the applications to be started according to the total decision scores of the applications to be started includes: Sorting the to-be-started applications in descending order according to the total decision scores to obtain a priority list for preloading resources for the to-be-started applications; The higher the total decision score of the application to be started is, the higher its priority for resource preloading is.

4. The method for preloading application resources according to claim 1, characterized in that: The preloading of resources for each of the to-be-started applications in the priority list in descending order of priority according to the priority list, the current remaining resources of the system and the predicted used resources comprises: For the target application to be started in the priority list, determining whether the current remaining resources of the system meet the preloading condition of the target application to be started; If yes, preload resources for the target application to be started. When the resource preloading is completed, update the current remaining resources of the system, and use the next priority application to be started of the current target application to be started in the priority list as the new target application to be started; If not, returning to the step of determining whether the current remaining resources of the system meet the preloading condition of the target application to be started after a delay of the first preset time; The preloading condition of the target application to be started includes that the difference between the current remaining resources of the system and the predicted usage resources for preloading the target application to be started is greater than a normal resource threshold of the system.

5. The method for preloading application resources according to claim 1, characterized in that: Also includes: According to the user interaction instruction, the preset algorithm set is updated, and the startup priority of the application to be started is predicted according to the updated preset algorithm set, so as to update the priority list for resource preloading of the application to be started.

6. The method for preloading application resources according to claim 1, characterized in that: The step of predicting the startup priority of the application to be started according to the preset algorithm set to obtain a priority list for preloading resources for the application to be started includes: The startup priority of the to-be-started application is re-predicted according to the preset algorithm set at a preset period to update the priority list for preloading resources of the to-be-started application.

7. The application resource preloading method according to claim 5 or 6, characterized in that: Also includes: Obtaining the ranking of the to-be-started application currently undergoing resource preloading and / or the to-be-started application that has completed resource preloading in the updated priority list; Determine whether the ranking of the to-be-started application currently undergoing resource preloading and / or the to-be-started application that has completed resource preloading in the updated priority list is lower than a preset ranking value; If yes, the preloaded resources corresponding to the to-be-started application currently performing resource preloading and / or the to-be-started application that has completed resource preloading are released.

8. The application resource preloading method according to claim 5 or 6, characterized in that: Also includes: Detecting the duration after the application to be started completes resource preloading; When the duration after the to-be-started application completes resource preloading and is not used by the user exceeds a second preset time, the preloaded resources corresponding to the to-be-started application are released.

9. An application resource preloading device, characterized in that: The device comprises: A decision module, used to predict the startup priority of the application to be started according to a preset algorithm set to obtain a priority list for resource preloading of the application to be started, wherein the preset algorithm set includes several preset decision algorithms; A resource preloading module, used to obtain predicted usage resources for resource preloading of each to-be-started application in the priority list, and preload resources for each to-be-started application in the priority list in descending order of priority according to the priority list, the current remaining resources of the system and the predicted usage resources; The resource recovery module is used to release the preloaded resources corresponding to the application to be started that is currently preloading resources and / or the application to be started that has completed resource preloading according to the priority change of each application to be started in the priority list.

10. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the application resource preloading method as described in any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the application resource preloading method according to any one of claims 1 to 8.

Citation Information

Cited By

  • Application resource preloading method and device, equipment and storage medium

    CN120670044A