Application starting method and device, electronic equipment and storage medium
Patent Information
- Application Number
- CN202211089973.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-07
- Publication Date
- 2026-10-13
- Estimated Expiration
- 2042-09-07
AI Technical Summary
[0081]在目标应用的启动指令触发的情况下,可以结合表征目标应用当前运行性能的目标运行指标数据,从不同来源获取的不同数据量的多种缓存数据中,确定用于加载出目标应用对应启动页面的目标缓存数据,可以在结合预先缓存的数据,有效降低应用启动时间的同时,提升启动页面中数据的多样性和应用运行性能,进而也可以更好的提升应用运行的稳定性。
Smart Images

Figure CN116302148B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and in particular to an application startup method, apparatus, electronic device, and storage medium. Background Technology
[0002] With the development of computer technology and the widespread adoption of smart terminals, the number of applications installed on these devices is increasing. Application startup time is a crucial indicator of an application's performance and also forms the first impression an application leaves on the user. Therefore, addressing the time spent during cold starts is a problem that every application needs to solve. Summary of the Invention
[0003] This disclosure provides an application startup method, apparatus, electronic device, and storage medium, which can reduce application startup time while increasing the diversity of data in the startup page and application performance, thereby improving application stability. The technical solution of this disclosure is as follows:
[0004] According to one aspect of the embodiments of this disclosure, an application launch method is provided, comprising:
[0005] In response to the launch command of the target application, the target running performance data of the target application is obtained, wherein the target running performance data represents the current running performance of the target application;
[0006] Based on the target operating metric data, target cache data is determined from multiple cache data sources, wherein the multiple cache data sources are different amounts of data to be displayed page data obtained from different sources;
[0007] Based on the target cached data, display the launch page corresponding to the target application.
[0008] In an optional embodiment, the multiple cached data includes first cached data and second cached data, wherein the amount of data in the first cached data is less than the amount of data in the second cached data; determining the target cached data from the multiple cached data based on the target operating metric data includes:
[0009] If the target operating indicator data is greater than or equal to the second preset threshold, the first cached data is used as the target cached data.
[0010] In an optional embodiment, the method further includes:
[0011] Obtain the first cache time of the first cached data and the second cache time of the second cached data;
[0012] The step of using the first cached data as the target cached data when the target operating indicator data is greater than or equal to the second preset threshold includes:
[0013] If the target operating indicator data is greater than or equal to the second preset threshold and the first cache time is not earlier than the second cache time, the step of using the first cache data as the target cache data is executed.
[0014] In an optional embodiment, the method further includes:
[0015] If the target operating metric data is greater than or equal to the second preset threshold, and the first cache time is earlier than the second cache time, then the second cache data is used as the target cache data.
[0016] In an optional embodiment, determining the target cache data from multiple cache data based on the target operational metric data further includes:
[0017] If the target operating metric data is less than the second preset threshold, the second cached data will be used as the target cached data.
[0018] In an optional embodiment, before obtaining the target application's target performance metrics data, the method further includes:
[0019] Obtain the historical startup time and current network status data corresponding to the target application;
[0020] If the historical startup time is less than or equal to a first preset threshold and the current network status data indicates that the current network is normal, then load the page data corresponding to the startup page.
[0021] Based on the page data, the startup page is displayed.
[0022] In an optional embodiment, the plurality of cached data includes first cached data and second cached data, wherein the amount of data in the first cached data is less than the amount of data in the second cached data; when the target cached data is the first cached data, and the first cached data includes resource description information of at least one first multimedia resource, the method further includes:
[0023] In response to a preset timed command, the preset loading interface corresponding to the target application is invoked;
[0024] Based on the preset loading interface, the resource description information of the at least one first multimedia resource is loaded.
[0025] In an optional embodiment, the step of calling the preset loading interface corresponding to the target application in response to a preset timed instruction includes:
[0026] In response to the preset timed command, the historical application startup time of the target object is obtained, wherein the target object is the object that triggered the application startup command;
[0027] Based on the historical application launch times, determine the application launch indication information for the target object within a preset time period;
[0028] When the application activation instruction information instructs the target object to activate the target application within the preset time period, the preset loading interface corresponding to the target application is invoked.
[0029] In an optional embodiment, the multiple cached data includes first cached data and second cached data, wherein the amount of data in the first cached data is less than the amount of data in the second cached data; when the target cached data is the second cached data, and the second cached data includes a portion of multimedia resources including at least one second multimedia resource and resource description information of the at least one second multimedia resource, the method further includes:
[0030] In response to the target application's close command, a second cached resource is determined, wherein the second cached resource is a portion of at least one multimedia resource to be displayed that was cached when the close command was triggered;
[0031] If the second cached resource is an unexposed multimedia resource, load the resource description information of the second cached resource;
[0032] The second cached resource is used as a part of the multimedia resource of the at least one second multimedia resource, and the resource description information of the second cached resource is used as the resource description information of the at least one second multimedia resource.
[0033] In an optional embodiment, the method further includes:
[0034] Get the cumulative resource amount of the second cached resource;
[0035] If the cumulative resource amount is less than a third preset threshold, the multimedia resource to be pushed and its resource description information are loaded until the cumulative resource amount of the currently cached resources reaches the third preset threshold; the currently cached resources include the second cached resources and the loaded multimedia resource to be pushed.
[0036] The currently cached resource is used as a part of the multimedia resource of the at least one second multimedia resource, and the resource description information of the currently cached resource is used as the resource description information of the at least one second multimedia resource.
[0037] In an optional embodiment, obtaining the target application's target performance metrics data includes:
[0038] Acquire at least one current operating environment data and preset mapping information, wherein the preset mapping information represents the correspondence between at least one operating environment data and the operating indicator data corresponding to each of the at least one operating environment data;
[0039] Based on the preset mapping information, determine the current operating indicator data corresponding to each of the at least one current operating environment data;
[0040] Based on the current operational indicator data, the target operational indicator data is determined.
[0041] According to another aspect of the embodiments of this disclosure, an application launching device is provided, comprising:
[0042] The target performance metrics data acquisition module is configured to execute a startup command in response to the target application to acquire the target performance metrics data of the target application, wherein the target performance metrics data characterizes the current performance of the target application;
[0043] The target cache data determination module is configured to determine target cache data from multiple cache data based on the target running indicator data, wherein the multiple cache data are page data to be displayed with different amounts of data obtained from different sources;
[0044] The first application startup module is configured to execute the display of the startup page corresponding to the target application based on the target cache data.
[0045] In an optional embodiment, the multiple cached data includes first cached data and second cached data, wherein the amount of data in the first cached data is less than the amount of data in the second cached data; the target cached data determination module includes:
[0046] The first target cache data determination unit is configured to use the first cache data as the target cache data when the target running indicator data is greater than or equal to a second preset threshold.
[0047] In an optional embodiment, the apparatus further includes:
[0048] Obtain the first cache time of the first cached data and the second cache time of the second cached data;
[0049] The first target cached data determination unit is further configured to perform the step of using the first cached data as the target cached data when the target running indicator data is greater than or equal to the second preset threshold and the first cache time is not earlier than the second cache time.
[0050] In an optional embodiment, the apparatus further includes:
[0051] The second target cached data determination unit is configured to perform the following action when the target running indicator data is greater than or equal to the second preset threshold and the first cache time is earlier than the second cache time: the second cached data is used as the target cached data.
[0052] In an optional embodiment, the target cache data determination module further includes:
[0053] The third target cache data determination unit is configured to use the second cache data as the target cache data when the target running indicator data is less than the second preset threshold.
[0054] In an optional embodiment, the apparatus further includes:
[0055] The data acquisition module is configured to acquire the historical startup time and current network status data of the target application.
[0056] The page data loading module is configured to load the page data corresponding to the startup page when the historical startup time is less than or equal to a first preset threshold and the current network status data indicates that the current network is normal.
[0057] The second application launch module is configured to display the launch page based on the page data.
[0058] In an optional embodiment, the plurality of cached data includes first cached data and second cached data, wherein the amount of data in the first cached data is less than the amount of data in the second cached data; when the target cached data is the first cached data, and the first cached data includes resource description information of at least one first multimedia resource, the apparatus further includes:
[0059] The preset loading interface call module is configured to execute a preset timed instruction to call the preset loading interface corresponding to the target application.
[0060] The first resource description information loading module is configured to execute the preset loading interface to load the resource description information of the at least one first multimedia resource.
[0061] In an optional embodiment, the aforementioned preset loading interface call module includes:
[0062] The historical application start time acquisition unit is configured to execute in response to the preset timed instruction to acquire the historical application start time of the target object, wherein the target object is the object that triggered the application start instruction;
[0063] The application launch indication information determination unit is configured to determine the application launch indication information of the target object within a preset time period based on the historical application launch time.
[0064] The preset loading interface call unit is configured to execute the call to the preset loading interface corresponding to the target application when the application opening indication information instructs the target object to open the target application within the preset time period.
[0065] In an optional embodiment, the multiple cached data includes first cached data and second cached data, wherein the amount of data in the first cached data is less than the amount of data in the second cached data; when the target cached data is the second cached data, and the second cached data includes a portion of multimedia resources including at least one second multimedia resource and resource description information of the at least one second multimedia resource, the apparatus further includes:
[0066] The cached resource acquisition module is configured to execute a close command in response to the target application, and determine a second cached resource, wherein the second cached resource is a portion of at least one multimedia resource to be displayed that was cached when the close command was triggered;
[0067] The second resource description information loading module is configured to load the resource description information of the second cached resource when the second cached resource is an unexposed multimedia resource.
[0068] The first cached data determination module is configured to perform the following: using the second cached resource as a part of the multimedia resource of the at least one second multimedia resource, and using the resource description information of the second cached resource as the resource description information of the at least one second multimedia resource.
[0069] In an optional embodiment, the apparatus further includes:
[0070] The cumulative resource quantity acquisition module is configured to acquire the cumulative resource quantity of the second cached resource;
[0071] The loading processing module is configured to load the multimedia resource to be pushed and its resource description information when the cumulative resource amount is less than a third preset threshold, until the cumulative resource amount of the currently cached resources reaches the third preset threshold; the currently cached resources include the second cached resources and the loaded multimedia resource to be pushed;
[0072] The second cached data determination module is configured to perform the following: using the currently cached resource as a part of the at least one second multimedia resource, and using the resource description information of the currently cached resource as the resource description information of the at least one second multimedia resource.
[0073] In an optional embodiment, the target performance indicator data acquisition module includes:
[0074] The information acquisition unit is configured to acquire at least one current operating environment data and preset mapping information, wherein the preset mapping information represents the correspondence between at least one operating environment data and the operating indicator data corresponding to each of the at least one operating environment data.
[0075] The current operating indicator data determination unit is configured to determine the current operating indicator data corresponding to each of the at least one current operating environment data based on the preset mapping information;
[0076] The target operating indicator data determination unit is configured to determine the target operating indicator data based on the current operating indicator data.
[0077] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method as described in any one of the first aspects above.
[0078] According to another aspect of the present disclosure, a computer-readable storage medium is provided, wherein when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform any one of the application initiation methods of the present disclosure.
[0079] According to another aspect of the present disclosure, a computer program product containing instructions is provided that, when run on a computer, causes the computer to perform any of the application initiation methods described in the embodiments of the present disclosure.
[0080] The technical solutions provided by the embodiments of this disclosure have at least the following beneficial effects:
[0081] When the launch command of the target application is triggered, the target cache data for loading the corresponding launch page of the target application can be determined by combining the target running index data that characterizes the current running performance of the target application with the target running index data that represents the current running performance of the target application and the various cache data with different amounts of data obtained from different sources. By combining the pre-cached data, the application launch time can be effectively reduced, while improving the diversity of data in the launch page and the running performance of the application, and thus also improving the stability of the application.
[0082] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0083] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.
[0084] Figure 1 This is a schematic diagram illustrating an application environment according to an exemplary embodiment;
[0085] Figure 2 This is a flowchart illustrating an application startup method according to an exemplary embodiment;
[0086] Figure 3 This is a flowchart illustrating a method for obtaining target operational metric data of a target application according to an exemplary embodiment;
[0087] Figure 4 This is a schematic diagram of loading first cached data according to an exemplary embodiment;
[0088] Figure 5 This is a flowchart illustrating another application launch method according to an exemplary embodiment;
[0089] Figure 6 This is a block diagram illustrating an application launch device according to an exemplary embodiment;
[0090] Figure 7 This is a block diagram illustrating an electronic device for application initiation according to an exemplary embodiment. Detailed Implementation
[0091] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0092] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0093] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.
[0094] Please see Figure 1 , Figure 1 This is a schematic diagram illustrating an application environment according to an exemplary embodiment, which may include a terminal 100 and a server 200.
[0095] In an optional embodiment, terminal 100 can be used to provide business services to any user, such as displaying multimedia resources like short videos. Specifically, terminal 100 can be, but is not limited to, electronic devices such as smartphones, desktop computers, tablets, laptops, smart speakers, digital assistants, augmented reality (AR) / virtual reality (VR) devices, and smart wearable devices, or software running on the aforementioned electronic devices, such as applications. Optionally, the operating system running on the electronic device can be, but is not limited to, Android, iOS, Linux, and Windows.
[0096] In an optional embodiment, server 200 can provide background services to terminal 100. Specifically, server 200 can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server providing cloud computing services.
[0097] In addition, it should be noted that, Figure 1 The example shown is merely one application environment provided by this disclosure. In practical applications, other application environments may also be included, such as more terminals.
[0098] In the embodiments described in this specification, the terminal 100 and the server 200 can be directly or indirectly connected through wired or wireless communication, and this disclosure does not impose any restrictions.
[0099] Figure 2 This is a flowchart illustrating an application launch method according to an exemplary embodiment. This method can be applied to a terminal, such as... Figure 2 As shown, it may include the following steps.
[0100] In step S201, in response to the launch command of the target application, the target application's target operating metric data is obtained.
[0101] In one specific embodiment, the target application can be any application that needs to be launched; the aforementioned target performance metrics data can characterize the current performance of the target application; optionally, such as Figure 3 As shown, obtaining the target application's target performance metrics data may include the following steps:
[0102] In step S301, at least one current operating environment data and preset mapping information are obtained.
[0103] In step S303, based on preset mapping information, the current operating indicator data corresponding to at least one current operating environment data is determined.
[0104] In step S305, the target operating indicator data is determined based on the current operating indicator data.
[0105] In one specific embodiment, the aforementioned preset mapping information can characterize the correspondence between at least one runtime environment data and its corresponding runtime metric data. Specifically, the preset mapping information can be issued by a server. The runtime environment data can be data that reflects the application's runtime environment. Optionally, the aforementioned at least one runtime environment data can include at least one of the following: number of CPU cores, CPU clock speed, CPU utilization, total memory, used memory, network type, real-time bandwidth, and device type.
[0106] In one specific embodiment, the performance indicator data can be a numerical value characterizing performance; specifically, the larger the value, the better the performance. Optionally, assuming the performance indicator data is a score, the aforementioned preset mapping information may include the information shown in Table 1:
[0107] Table 1
[0108]
[0109]
[0110] In one specific embodiment, the correspondence between any operating environment data in Table 1 and the operating indicator data of that operating environment data is merely an example. In practical applications, it can be set according to actual needs.
[0111] In one specific embodiment, the aforementioned at least one current runtime environment data can be information about the runtime environment in which the target application resides. Specifically, at least one of the following can be obtained from the runtime environment in which the target application resides: number of CPU cores, CPU frequency, CPU utilization, total memory, used memory, network type, real-time bandwidth, and device type. Combined with the aforementioned preset mapping information, the current runtime metric data corresponding to each current runtime environment data is determined. Specifically, the runtime metric data corresponding to the device type can be determined by first obtaining the device model of the device to which the target application belongs; specifically, by combining the device types of multiple pre-set device models, the device model corresponding to the target application is determined.
[0112] In one specific embodiment, when at least one current operating environment data includes multiple current operating environment data, the current operating indicator data corresponding to the multiple current operating environment data can be summed to obtain the target operating indicator data. Optionally, when at least one current operating environment data includes one current operating environment data, the current operating indicator data corresponding to that current operating environment data can be used as the target operating indicator data.
[0113] In the above embodiments, by combining the preset mapping information that can characterize the correspondence between at least one operating environment data and the corresponding operating indicator data of each of the at least one operating environment data, the current operating indicator data corresponding to at least one current operating environment data in the operating environment where the target application is located can be determined, thereby accurately and comprehensively determining the current operating performance of the target application.
[0114] In step S203, the target cache data is determined from multiple cache data based on the target operating index data.
[0115] In one specific embodiment, the aforementioned multiple cached data can be different amounts of page data to be displayed obtained from different sources. Specifically, the source of the cached data can be set according to the actual application, and the data volume corresponding to different sources is different. The target cached data can be the data currently used to be displayed in the launch page. Optionally, the multiple cached data can include first cached data and second cached data, and the data volume of the first cached data is less than that of the second cached data. Optionally, the first cached data can be page data to be displayed from a first source obtained through periodic updates; the second cached data is page data to be displayed from a second source obtained when the target application was last closed. Optionally, the first source and the second source can be set according to the actual application. For example, the first source can be the application's homepage source, and correspondingly, the first cached data can be page data to be displayed on the homepage; the second source can be the source of data viewed when the target application was last closed, such as a featured source in the short video field.
[0116] In an optional embodiment, when the target cached data is second cached data and the first cached data includes resource description information of at least one first multimedia resource, the above method may further include:
[0117] In response to a preset timed command, the preset loading interface corresponding to the target application is called;
[0118] Based on the preset loading interface, load the resource description information of at least one first multimedia resource.
[0119] In a specific embodiment, a timed task can be preset and automatically triggered at specified time intervals. Specifically, the timed task corresponding to the preset timed instruction can be preset by user authorization. Accordingly, when the preset timed instruction is triggered, the process of loading the data of the page to be displayed from the first source can be entered.
[0120] In one specific embodiment, the aforementioned preset loading interface can be a pre-set interface for loading page data to be displayed from the first source. Specifically, the aforementioned at least one first multimedia resource can be a multimedia resource to be displayed from the first source; optionally, the multimedia resource to be displayed from the first source can be selected by combining the matching results between the target object's current object attribute information (information characterizing object characteristics, such as gender, historical multimedia resource browsing data, etc.) and the resource attribute information (information characterizing multimedia resource characteristics, such as title information, publisher information, etc.) of the multimedia resources from the first source within the platform. Specifically, multimedia resources can include static media resources such as text and images, and can also include dynamic media resources such as videos.
[0121] In one specific embodiment, the resource description information mentioned above can be information describing at least one multimedia resource during the display of at least one first multimedia resource, such as comment information, collection information, etc.
[0122] In the above embodiments, by using a preset timing instruction, at least one resource description information of a first multimedia resource can be loaded at regular intervals based on the preset loading interface corresponding to the target application, so as to serve as cache data for the startup page, thereby effectively ensuring the timeliness of the startup page data.
[0123] In an optional embodiment, the above-mentioned response to a preset timed instruction, calling the preset loading interface corresponding to the target application, may include:
[0124] In response to a preset timed command, the historical application startup time of the target object is obtained; the target object is the object that triggered the application startup command.
[0125] Based on historical application launch times, determine the application launch instruction information for the target object within a preset time period;
[0126] When the application launch instruction tells the target object to launch the target application within a preset time period, the preset loading interface corresponding to the target application is called.
[0127] In one specific embodiment, the historical application start time can be the time when the target object opened the target application within a historical time period. Specifically, the historical time period can be set based on the timeliness of the object's start time in actual applications, such as the last 30 days. Specifically, the time of opening the target application (the application start time each time) can be recorded each time the target object launches the target application.
[0128] In a specific embodiment, the preset time period can be a pre-defined time period following the current time, such as within 2 hours. Specifically, determining the application launch indication information for the target object within the preset time period based on historical application launch times can include: calculating the proportion of each application launch time in the historical application launch times, taking the application launch times with a proportion greater than or equal to a preset proportion threshold as the target launch time, and obtaining the application launch indication information for the target object to launch the target application within the preset time period if the target launch time is within the preset time period; conversely, obtaining the application launch indication information for the target object not to launch the target application within the preset time period if the target launch time is not within the preset time period. For example, the target launch time may include 9:00, the current time is 8:00, and the preset time period is within 2 hours; accordingly, it can be determined that the target launch time is within the preset time period.
[0129] In one specific embodiment, if the application opening indication information instructs the target object not to open the target application within a preset time period, the step of calling the preset loading interface corresponding to the target application can be omitted, that is, the process of loading the data of the page to be displayed from the first source can be omitted.
[0130] In an optional embodiment, when the recorded application start times are few, it is often impossible to effectively analyze the target start time that meets the user's needs by combining historical application start times; accordingly, when the application start times in the historical application start times are small (e.g., less than 7 days), the step of calling the preset loading interface corresponding to the target application can be directly executed.
[0131] In a specific embodiment, such as Figure 4 As shown, Figure 4 This is a schematic diagram illustrating the loading of first cached data according to an exemplary embodiment. Specifically, each time an application startup command is triggered, the main process of the target application can record the startup time and store it in a preset set (a set for storing historical application startup times). Correspondingly, each time a preset timed command is triggered, a preset process (the process that handles the timed task) can obtain the historical application startup time from the preset set. When the application startup instruction information instructs the target object to start the target application within a preset time period, the preset loading interface corresponding to the target application is called to load the page data to be displayed from the first source (resource description information of at least one first multimedia resource) from the server and store it in the preset cache.
[0132] In the above embodiments, when a preset timed instruction is triggered, the application opening instruction information of the target object within a preset time period is determined by combining the historical application opening time of the target object. Then, when the application opening instruction information instructs the target object to open the target application within the preset time period, the operation of calling the preset loading interface corresponding to the target application is executed to perform timed data caching operation, thereby improving the timeliness and effectiveness of cached data.
[0133] In an optional embodiment, when the target cached data is second cached data, and the second cached data includes partial multimedia resources comprising at least one second multimedia resource and resource description information of at least one second multimedia resource, the above method may further include:
[0134] In response to the target application's close command, determine the second cached resource;
[0135] If the second cached resource is an unexposed multimedia resource, load the resource description information of the second cached resource;
[0136] The second cached resource is used as a part of the multimedia resource of at least one second multimedia resource, and the resource description information of the second cached resource is used as the resource description information of at least one second multimedia resource.
[0137] In one specific embodiment, the aforementioned second cached resource may be a portion of the multimedia resources of at least one multimedia resource to be displayed (multimedia resources to be displayed from a second source) that were cached when the close instruction was triggered.
[0138] In practical applications, during the display of multimedia resources, the matching between the target object's current object attribute information and the resource attribute information of multimedia resources from a second source within the platform is used to select the multimedia resources to be pushed. Correspondingly, during the display of a certain multimedia resource, if that resource has already been loaded, a portion of the multimedia resources of at least one other multimedia resource to be pushed after that resource (e.g., video data of a preset duration in a video) can be loaded. Similarly, the at least one multimedia resource to be displayed that is cached when the close command is triggered can be the multimedia resource viewed at the time the close command is triggered, followed by a preset number of multimedia resources to be pushed; the preset number can be set according to the actual application.
[0139] In a specific embodiment, there may be situations where users switch back and forth between viewing multimedia resources. Accordingly, when it is determined that the second cached resource is an unexposed multimedia resource, the resource description information of the second cached resource can be loaded so that the second cached resource can be used as a part of the multimedia resources of at least one second multimedia resource, and the resource description information of the second cached resource can be used as the resource description information of at least one second multimedia resource.
[0140] In an optional embodiment, if it is determined that the second cached resource includes exposed multimedia resources, the exposed multimedia resources can be removed, and the multimedia resources to be pushed can be re-selected from the multimedia resources of the second source by combining object attribute information and resource attribute information, and then preloaded and cached.
[0141] In the above embodiments, when the target application's close command is triggered, cached data from a second source can be constructed by combining the unexposed cached resources and the resource description information of the unexposed cached resources, thereby reducing the subsequent application startup time and improving application performance.
[0142] In an optional embodiment, the above method may further include:
[0143] Get the cumulative resource amount of the second cached resource;
[0144] If the cumulative resource amount is less than the third preset threshold, load the multimedia resources to be pushed and the resource description information of the multimedia resources to be pushed, until the cumulative resource amount of the currently cached resources reaches the third preset threshold.
[0145] The currently cached resource is used as a part of the multimedia resource of at least one second multimedia resource, and the resource description information of the currently cached resource is used as the resource description information of at least one second multimedia resource.
[0146] In one specific embodiment, the currently cached resources may include second cached resources and loaded multimedia resources to be pushed. Specifically, the multimedia resources to be pushed can be determined by combining the matching between the target object's current object attribute information and resource attribute information; the third preset threshold can be a pre-set upper limit for the data volume caching of multimedia resources from the second source. Optionally, if the cumulative resource volume of the second cached resources is less than the third preset threshold, the multimedia resources to be pushed can continue to be loaded until the cumulative resource volume of the currently cached resources reaches the third preset threshold.
[0147] In the above embodiments, by setting a third preset threshold, the amount of cached data from the second source can be controlled in combination with the amount of cached resources, thereby effectively controlling the cache storage space.
[0148] In an optional embodiment, the aforementioned multiple cached data may include first cached data and second cached data, and the amount of first cached data is less than the amount of second cached data. The determination of the target cached data from the multiple cached data based on the target operating metric data may include:
[0149] If the target operating indicator data is greater than or equal to the second preset threshold, the first cached data will be used as the target cached data.
[0150] In one specific embodiment, the second preset threshold can be set according to the actual application, such as 50. The above-mentioned target operating indicator data is positively correlated with the current operating performance of the target application. Accordingly, when the target operating indicator data is greater than or equal to the second preset threshold, it can be determined that the current operating performance of the target application is good, that is, during the application startup process, the device has a certain ability to load page data while starting up; accordingly, the first cached data with a smaller data volume can be used as the target cached data.
[0151] In the above embodiments, by setting cached data of different amounts, and using the first cached data with a smaller amount of data as the target cached data when the target running indicator data is greater than or equal to the second preset threshold, the diversity of page data sources can be improved while effectively controlling the application startup time.
[0152] In an optional embodiment, the above method may further include:
[0153] Get the first cache time of the first cached data and the second cache time of the second cached data;
[0154] Accordingly, when the target operating indicator data is greater than or equal to the second preset threshold, using the first cached data as the target cached data may include:
[0155] If the target operating metric data is greater than or equal to the second preset threshold and the first cache time is not earlier than the second cache time, the step of using the first cache data as the target cache data is executed.
[0156] In an optional embodiment, the above method may further include:
[0157] If the target operating metric data is greater than or equal to the second preset threshold, and the first cache time is earlier than the second cache time, the second cache data will be used as the target cache data.
[0158] In one specific embodiment, the first cache time can be the time when the first cached data is loaded into the local cache; the second cache time can be the time when the second cached data is loaded into the local cache. Specifically, if the first cache time is not earlier than the second cache time, it can be determined that the timeliness of the first cached data is better than that of the second cached data.
[0159] In the above embodiments, by setting different amounts of cached data, and when the target running indicator data is greater than or equal to a second preset threshold, and by comparing the first cache time of the first cached data and the second cache time of the second cached data, if the first cache time is not earlier than the second cache time, the first cached data is used as the target cached data; if the first cache time is earlier than the second cache time, the second cached data is used as the target cached data. This can improve the timeliness of page data while effectively controlling the application startup time.
[0160] In an optional embodiment, the determination of the target cache data from multiple cache data based on the target operating metric data may further include:
[0161] If the target operating metric data is less than the second preset threshold, the second cached data will be used as the target cached data.
[0162] In one specific embodiment, if the target performance indicator data is less than the second preset threshold, it can be determined that the current target application has poor performance; accordingly, the second cache data with a large amount of data can be used as the target cache data, thereby reducing the amount of data that needs to be loaded during application startup.
[0163] In the above embodiments, when the target running indicator data is less than the second preset threshold, the second cached data with a larger data volume is used as the target cached data. This can reduce the data that needs to be loaded during application startup, thereby effectively controlling the application startup time while increasing the diversity of page data sources.
[0164] In step S205, the launch page corresponding to the target application is displayed based on the target cache data.
[0165] In an optional embodiment, when the target cached data is first cached data, and the first cached data includes resource description information of at least one first multimedia resource, the above-mentioned displaying the launch page corresponding to the target application based on the target cached data may include:
[0166] Load at least one primary multimedia resource;
[0167] During the loading of at least one first multimedia resource, a startup page is displayed based on the resource description information of the first cached resource and the resource description information of the first cached resource in the resource description information of at least one first multimedia resource;
[0168] In one specific embodiment, the first cached resource can be a multimedia resource that has been cached in at least one first multimedia resource.
[0169] In the above embodiments, when the target cached data is the first cached data and the first cached data includes resource description information of at least one first multimedia resource, that is, when the target application has good running performance, even if the multimedia resource needs to be loaded first, the application startup time can be effectively reduced.
[0170] In an optional embodiment, when the target cached data is second cached data, and the second cached data includes partial multimedia resources of at least one second multimedia resource and resource description information of at least one second multimedia resource, displaying the launch page corresponding to the target application based on the target cached data includes:
[0171] Based on a portion of the multimedia resources of the first multimedia resource in at least one second multimedia resource and the resource description information of the first multimedia resource, the startup page is displayed, and the remaining multimedia resources of at least one second multimedia resource are loaded.
[0172] In one specific embodiment, the remaining multimedia resources mentioned above may be multimedia resources other than some multimedia resources of at least one second multimedia resource.
[0173] In the above embodiments, when the target cached data is the second cached data, and the second cached data includes at least one part of the multimedia resources of the second multimedia resource and at least one resource description information of the second multimedia resource, the cached data can be directly combined to load and render the startup page, and the remaining multimedia resources can continue to be loaded during the page display process, which can effectively reduce the application startup time when the application running performance is poor.
[0174] In an optional embodiment, before obtaining the target application's target performance metrics data, such as Figure 5 As shown, the above method may further include:
[0175] In step S207, the historical startup time and current network status data corresponding to the target application are obtained;
[0176] In step S209, if the historical startup time is less than or equal to the first preset threshold and the current network status data indicates that the current network is normal, the page data corresponding to the startup page is loaded.
[0177] In step S211, the startup page is displayed based on the page data.
[0178] In one specific embodiment, when an application launch command is triggered, the historical launch time and current network status data corresponding to the target application can be obtained. The aforementioned historical launch time can be the launch time (cold start time) of the target object in the most recent preset number of launches. The preset number of launches can be set according to the actual application, for example, 3 times. Specifically, the historical launch time being less than or equal to a first preset threshold can be defined as the launch time of the preset number of launches being less than the first preset threshold. The first preset threshold can be set according to the actual application, for example, 1 second.
[0179] In a specific embodiment, the current network status data can be the connection status of the network currently occupied by the target application. Optionally, if the target application is currently connected to the network, it can be determined that the current network status data indicates that the current network is normal; conversely, if the target application is currently disconnected from the network, it can be determined that the current network status data indicates that the current network is abnormal. Accordingly, if the historical startup time is less than or equal to a first preset threshold and the current network status data indicates that the current network is normal, it can be determined that the target application can be started quickly. Accordingly, the loading interface can be called to directly load the page data corresponding to the startup page, and the startup page can be displayed based on the page data.
[0180] In an optional embodiment, step S201 above can be replaced by: obtaining target operation index data of the target application when the historical startup time is greater than a first preset threshold, or when the current network status data indicates that the current network is abnormal.
[0181] In the above embodiments, by combining historical startup time and current network status data, if it is determined that the target application can be started quickly, the page data corresponding to the startup page can be directly loaded, and the startup page can be displayed based on the page data. This can effectively control the application startup time while improving the timeliness and effectiveness of the page data.
[0182] As can be seen from the technical solutions provided in the embodiments of this specification above, when the startup command of the target application is triggered, the target cache data for loading the corresponding startup page of the target application can be determined from various cache data of different amounts obtained from different sources, in combination with the target running index data that characterizes the current running performance of the target application. This can effectively reduce the application startup time while improving the diversity of data in the startup page and the running performance of the application, and thus better improve the stability of the application operation.
[0183] Figure 6 This is a block diagram illustrating an application launch device according to an exemplary embodiment. (Refer to...) Figure 6 The device includes:
[0184] The target performance metrics data acquisition module 610 is configured to execute a startup command in response to the target application to acquire the target performance metrics data of the target application, which represents the current performance of the target application.
[0185] The target cache data determination module 620 is configured to determine the target cache data from multiple cache data based on the target running indicator data. The multiple cache data are page data to be displayed with different amounts of data obtained from different sources.
[0186] The first application startup module 630 is configured to execute the startup page of the target application based on the target cache data.
[0187] In an optional embodiment, the multiple cached data includes first cached data and second cached data, wherein the amount of first cached data is less than the amount of second cached data; the target cached data determination module 620 includes:
[0188] The first target cache data determination unit is configured to use the first cache data as the target cache data when the target running indicator data is greater than or equal to the second preset threshold.
[0189] In an optional embodiment, the above-described apparatus further includes:
[0190] Get the first cache time of the first cached data and the second cache time of the second cached data;
[0191] The first target cached data determination unit is also configured to perform the following step: if the target running indicator data is greater than or equal to the second preset threshold and the first cache time is not earlier than the second cache time, perform the step of using the first cached data as the target cached data.
[0192] In an optional embodiment, the above-described apparatus further includes:
[0193] The second target cached data determination unit is configured to use the second cached data as the target cached data when the target running indicator data is greater than or equal to the second preset threshold and the first cache time is earlier than the second cache time.
[0194] In an optional embodiment, the target cache data determination module 620 further includes:
[0195] The third target cache data determination unit is configured to use the second cache data as the target cache data when the target running indicator data is less than the second preset threshold.
[0196] In an optional embodiment, the above-described apparatus further includes:
[0197] The data acquisition module is configured to acquire historical startup time and current network status data for the target application.
[0198] The page data loading module is configured to load the page data corresponding to the startup page when the historical startup time is less than or equal to a first preset threshold and the current network status data indicates that the current network is normal.
[0199] The second application startup module is configured to execute a startup page based on page data.
[0200] In an optional embodiment, the multiple cached data includes first cached data and second cached data, wherein the amount of data in the first cached data is less than the amount of data in the second cached data; when the target cached data is the first cached data, and the first cached data includes resource description information of at least one first multimedia resource, the above apparatus further includes:
[0201] The preset loading interface call module is configured to execute a preset timed command and call the preset loading interface corresponding to the target application.
[0202] The first resource description information loading module is configured to execute a preset loading interface to load the resource description information of at least one first multimedia resource.
[0203] In an optional embodiment, the aforementioned preset loading interface call module includes:
[0204] The historical application start time acquisition unit is configured to execute a preset timed instruction to acquire the historical application start time of a target object, where the target object is the object that triggered the application start instruction.
[0205] The application launch indication information determination unit is configured to determine the application launch indication information of the target object within a preset time period based on the historical application launch time.
[0206] The preset loading interface call unit is configured to execute the call to the preset loading interface corresponding to the target application when the application start indication information instructs the target object to start the target application within a preset time period.
[0207] In an optional embodiment, the multiple cached data includes first cached data and second cached data, wherein the amount of data in the first cached data is less than the amount of data in the second cached data; when the target cached data is the second cached data, and the second cached data includes partial multimedia resources including at least one second multimedia resource and resource description information of at least one second multimedia resource, the above apparatus further includes:
[0208] The cached resource acquisition module is configured to execute a close command in response to the target application, and determine a second cached resource, which is a portion of at least one multimedia resource to be displayed that was cached when the close command was triggered;
[0209] The second resource description information loading module is configured to load the resource description information of the second cached resource when the second cached resource is an unexposed multimedia resource.
[0210] The cached data determination module is configured to perform the following: using the second cached resource as a partial multimedia resource of at least one second multimedia resource, and using the resource description information of the second cached resource as the resource description information of at least one second multimedia resource.
[0211] In an optional embodiment, the above-described apparatus further includes:
[0212] The cumulative resource quantity acquisition module is configured to acquire the cumulative resource quantity of the second cached resource;
[0213] The loading processing module is configured to load the multimedia resources to be pushed and their resource description information when the cumulative resource amount is less than a third preset threshold, until the cumulative resource amount of the currently cached resources reaches the third preset threshold; the currently cached resources include the second cached resources and the loaded multimedia resources to be pushed.
[0214] The second cached data determination module is configured to perform the following: using the currently cached resource as a partial multimedia resource of at least one second multimedia resource, and using the resource description information of the currently cached resource as the resource description information of at least one second multimedia resource.
[0215] In an optional embodiment, the target performance indicator data acquisition module includes:
[0216] The information acquisition unit is configured to acquire at least one current operating environment data and preset mapping information, wherein the preset mapping information represents the correspondence between at least one operating environment data and the operating indicator data corresponding to each of the at least one operating environment data.
[0217] The current operating indicator data determination unit is configured to determine the current operating indicator data corresponding to at least one current operating environment data based on preset mapping information.
[0218] The target operating indicator data determination unit is configured to determine the target operating indicator data based on the current operating indicator data.
[0219] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0220] Figure 7 This is a block diagram illustrating an electronic device for application initiation according to an exemplary embodiment. The electronic device may be a terminal, and its internal structure diagram may be as follows: Figure 7 As shown in the figure. This disclosure also provides a schematic diagram of a terminal structure, as shown in the figure. Figure 7 As shown, this terminal can be used to implement the video output method provided in the above embodiments. Specifically:
[0221] The terminal may include an RF (Radio Frequency) circuit 710, a memory 720 including one or more computer-readable storage media, an input unit 730, a display unit 740, a sensor 750, an audio circuit 760, a WiFi (Wireless Fidelity) module 770, a processor 780 including one or more processing cores, and a power supply 790, among other components. Those skilled in the art will understand that... Figure 7 The terminal structure shown does not constitute a limitation on the terminal and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:
[0222] The RF circuit 710 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and hands it over to one or more processors 780 for processing; additionally, it transmits uplink data to the base station. Typically, the RF circuit 710 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, etc. Furthermore, the RF circuit 710 can also communicate wirelessly with networks and other terminals. Wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), etc.
[0223] The memory 720 can be used to store software programs and modules. The processor 780 executes various functional applications and data processing by running the software programs and modules stored in the memory 720. The memory 720 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for the functions, etc.; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 720 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 720 may also include a memory controller to provide access to the memory 720 for the processor 780 and the input unit 730.
[0224] The input unit 730 can be used to receive input digital or character information, and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. Specifically, the input unit 730 may include a touch-sensitive surface 731 and other input devices 732. The touch-sensitive surface 731, also known as a touch display screen or touchpad, can collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch-sensitive surface 731), and drive the corresponding connection device according to a pre-set program. Optionally, the touch-sensitive surface 731 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to the processor 780, and can receive and execute commands sent by the processor 780. In addition, the touch-sensitive surface 731 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 731, the input unit 730 may also include other input devices 732. Specifically, other input devices 732 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc.
[0225] The display unit 740 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the terminal. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. The display unit 740 may include a display panel 741, which may optionally be configured as an LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or similar display. Further, a touch-sensitive surface 731 may cover the display panel 741. When the touch-sensitive surface 731 detects a touch operation on or near it, it transmits the information to the processor 780 to determine the type of touch event. Subsequently, the processor 780 provides corresponding visual output on the display panel 741 according to the type of touch event. The touch-sensitive surface 731 and the display panel 741 can be two independent components to implement input and output functions; however, in some embodiments, the touch-sensitive surface 731 and the display panel 741 can be integrated to achieve both input and output functions.
[0226] The terminal may also include at least one sensor 750, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 741 according to the ambient light level, and the proximity sensor can turn off the display panel 741 and / or the backlight when the terminal is moved to the ear. As a type of motion sensor, a gravity acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used for applications that identify the terminal's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition-related functions (such as pedometer, tapping), etc. Other sensors that may be configured on the terminal, such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.
[0227] Audio circuitry 760, speaker 761, and microphone 762 provide an audio interface between the user and the terminal. Audio circuitry 760 converts received audio data into electrical signals, which are then transmitted to speaker 761, where they are converted into sound signals for output. Conversely, microphone 762 collects sound signals, converts them into electrical signals, which are received by audio circuitry 760, converted back into audio data, and then processed by processor 780 before being transmitted via RF circuitry 710 to, for example, another terminal, or output to memory 720 for further processing. Audio circuitry 760 may also include an earphone jack to facilitate communication between a peripheral headset and the terminal.
[0228] WiFi is a short-range wireless transmission technology. This terminal, through the WiFi module 770, can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 7 WiFi module 770 is shown, but it is understood that it is not an essential component of the terminal and can be omitted as needed without changing the nature of the invention.
[0229] The processor 780 is the control center of the terminal, connecting various parts of the terminal via various interfaces and lines. It executes software programs and / or modules stored in the memory 720, and calls data stored in the memory 720 to perform various functions and process data, thereby providing overall monitoring of the terminal. Optionally, the processor 780 may include one or more processing cores; preferably, the processor 780 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 780.
[0230] The terminal also includes a power supply 790 (such as a battery) to power various components. Preferably, the power supply can be logically connected to the processor 780 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 790 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0231] Although not shown, the terminal may also include a camera, Bluetooth module, etc., which will not be described in detail here. Specifically, in this embodiment, the terminal's display unit is a touch screen display, and the terminal also includes a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors of the instructions in the method embodiment of the present invention.
[0232] In an exemplary embodiment, an electronic device is also provided, including: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement an application launch method as described in the embodiments of this disclosure.
[0233] In an exemplary embodiment, a computer-readable storage medium is also provided, wherein when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the application startup method of the present disclosure embodiments.
[0234] In an exemplary embodiment, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute the application initiation method of the present disclosure embodiments.
[0235] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this 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. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0236] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0237] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. An application launch method, characterized in that, include: In response to the launch command of the target application, the target running performance data of the target application is obtained, wherein the target running performance data represents the current running performance of the target application; Based on the target operating metric data, target cache data is determined from multiple cache data sources. These multiple cache data sources are page data to be displayed with different amounts of data obtained from different sources. The multiple cache data sources include first cache data and second cache data, where the amount of data in the first cache data is less than the amount of data in the second cache data. The step of determining the target cached data from multiple cached data based on the target operating indicator data includes: obtaining the first cache time of the first cached data and the second cache time of the second cached data; and when the target operating indicator data is greater than or equal to a second preset threshold and the first cache time is not earlier than the second cache time, the first cached data is used as the target cached data. Based on the target cached data, display the launch page corresponding to the target application.
2. The application launch method according to claim 1, characterized in that, The method further includes: If the target operating metric data is greater than or equal to the second preset threshold, and the first cache time is earlier than the second cache time, then the second cache data is used as the target cache data.
3. The application launch method according to claim 1, characterized in that, The step of determining the target cache data from multiple cache data based on the target operational metric data further includes: If the target operating metric data is less than the second preset threshold, the second cached data will be used as the target cached data.
4. The application launch method according to any one of claims 1 to 3, characterized in that, Before obtaining the target operating metric data of the target application, the method further includes: Obtain the historical startup time and current network status data corresponding to the target application; If the historical startup time is less than or equal to a first preset threshold and the current network status data indicates that the current network is normal, then load the page data corresponding to the startup page. Based on the page data, the startup page is displayed.
5. The application launch method according to any one of claims 1 to 3, characterized in that, The multiple cached data includes first cached data and second cached data, wherein the amount of data in the first cached data is less than the amount of data in the second cached data; when the target cached data is the first cached data, and the first cached data includes resource description information of at least one first multimedia resource, the method further includes: In response to a preset timed command, the preset loading interface corresponding to the target application is invoked; Based on the preset loading interface, the resource description information of the at least one first multimedia resource is loaded.
6. The application launch method according to claim 5, characterized in that, The step of responding to a preset timed command and calling the preset loading interface corresponding to the target application includes: In response to the preset timed command, the historical application startup time of the target object is obtained, wherein the target object is the object that triggered the application startup command; Based on the historical application launch times, determine the application launch indication information for the target object within a preset time period; When the application activation instruction information instructs the target object to activate the target application within the preset time period, the preset loading interface corresponding to the target application is invoked.
7. The application launch method according to any one of claims 1 to 3, characterized in that, The multiple cached data includes first cached data and second cached data, wherein the amount of data in the first cached data is less than the amount of data in the second cached data; when the target cached data is the second cached data, and the second cached data includes a portion of multimedia resources including at least one second multimedia resource and resource description information of the at least one second multimedia resource, the method further includes: In response to the target application's close command, a second cached resource is determined, wherein the second cached resource is a portion of at least one multimedia resource to be displayed that was cached when the close command was triggered; If the second cached resource is an unexposed multimedia resource, load the resource description information of the second cached resource; The second cached resource is used as a part of the multimedia resource of the at least one second multimedia resource, and the resource description information of the second cached resource is used as the resource description information of the at least one second multimedia resource.
8. The application launch method according to claim 7, characterized in that, The method further includes: Get the cumulative resource amount of the second cached resource; If the cumulative resource amount is less than a third preset threshold, the multimedia resource to be pushed and its resource description information are loaded until the cumulative resource amount of the currently cached resources reaches the third preset threshold; the currently cached resources include the second cached resources and the loaded multimedia resource to be pushed. The currently cached resource is used as a part of the multimedia resource of the at least one second multimedia resource, and the resource description information of the currently cached resource is used as the resource description information of the at least one second multimedia resource.
9. The application launch method according to any one of claims 1 to 3, characterized in that, The acquisition of the target application's target performance metrics data includes: Acquire at least one current operating environment data and preset mapping information, wherein the preset mapping information represents the correspondence between at least one operating environment data and the operating indicator data corresponding to each of the at least one operating environment data; Based on the preset mapping information, determine the current operating indicator data corresponding to each of the at least one current operating environment data; Based on the current operational indicator data, the target operational indicator data is determined.
10. An application activation device, characterized in that, include: The target performance metrics data acquisition module is configured to execute a startup command in response to the target application to acquire the target performance metrics data of the target application, wherein the target performance metrics data characterizes the current performance of the target application; The target cache data determination module is configured to determine target cache data from multiple cache data based on the target running indicator data, wherein the multiple cache data are page data to be displayed with different amounts of data obtained from different sources; The multiple cached data includes first cached data and second cached data, wherein the amount of first cached data is less than the amount of second cached data. The application launch device further includes: a cache time acquisition module, configured to acquire a first cache time of the first cache data and a second cache time of the second cache data; the target cache data determination module includes: a first target cache data determination unit, configured to use the first cache data as the target cache data when the target running indicator data is greater than or equal to a second preset threshold and the first cache time is not earlier than the second cache time. The first application startup module is configured to execute the display of the startup page corresponding to the target application based on the target cache data.
11. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the application startup method as described in any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the application startup method as described in any one of claims 1 to 9.
13. A computer program product comprising computer instructions, characterized in that, When the computer instructions are executed by the processor, they implement the application startup method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Page loading method and device, electronic equipment and storage medium
CN112612546A
Page loading method and device
CN113127088A