Client starting resource loading method and device, equipment and medium

By preloading the basic startup resources of the client, distinguishing and loading necessary basic and functional resources, the problems of long client startup time and waste of resources are solved, and efficient startup and resource conservation are achieved.

CN120295684APending Publication Date: 2025-07-11BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410046593.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-11
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

In the prior art, clients that load a large number of startup resources have a long startup time, which affects the user experience, and loading resources in advance will lead to waste of equipment operation resources.

Method used

By obtaining pre-start instructions, distinguish the basic startup resources of the client and the functional startup resources, only load the basic startup resources, use the basic startup resource loading function to start the resources, and start the client.

Benefits of technology

While improving client startup efficiency, it reduces the waste of device operation resources, optimizes resource usage efficiency, and reduces the possibility of startup failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120295684A_ABST
    Figure CN120295684A_ABST
Patent Text Reader

Abstract

The invention discloses a starting resource loading method, device and equipment for a client and a medium, and the method and the device are applied to the technical field of computers. A boot resource of the client is determined. The starting resources comprise basic starting resources and function starting resources. The basic starting resource is a resource necessary for starting the client. The function starting resources are resources related to functions processed by the client except the basic starting resources included in the starting resources. And finally, loading the basic startup resources. In this way, only the basic starting resources necessary for starting the client can be loaded in the pre-starting stage, and on the premise that the starting efficiency of the client is improved, waste of equipment operation resources is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and particularly to a method, apparatus, device, and medium for loading startup resources of a client. Background Art

[0002] During the process of using an electronic device, a user needs to start a client installed on the electronic device. After the user triggers the startup of the client, the electronic device loads the resources required to start the client. After the resource loading is completed, the client displays an interface including content to the user for the user to view and operate.

[0003] For a client that needs to load a large number of startup resources, the process of loading startup resources is long, the time consumed for startup is more, and the user waits for a long time for the client to start, which affects the user experience. Some clients adopt a pre-startup method to pre-load startup resources in advance to shorten the subsequent waiting time for the user to start the client. However, pre-loading startup resources will cause waste of device operation resources. Summary of the Invention

[0004] In view of this, this application provides a method, apparatus, device, and medium for loading startup resources of a client, aiming to pre-load basic startup resources and reduce the waste of device operation resources on the basis of improving the startup efficiency of the client.

[0005] Based on this, the technical solutions provided in this application are as follows:

[0006] In a first aspect, this application provides a method for loading startup resources of a client, and the method includes:

[0007] Obtain a pre-startup instruction for the client;

[0008] Determine the basic startup resources and functional startup resources included in the startup resources of the client, where the basic startup resources are the necessary resources for starting the client, and the functional startup resources are the resources related to the functions processed by the client other than the basic startup resources included in the startup resources;

[0009] Load the basic startup resources so that when starting the client, the functional startup resources are loaded based on the basic startup resources to start the client.

[0010] In a possible implementation, the loading of the basic startup resources includes:

[0011] Call a pre-startup process corresponding to the client to load the basic startup resources, and the pre-startup process is pre-configured for loading the basic startup resources.

[0012] In a possible implementation, the method further includes:

[0013] Upon detecting that the client has completed startup, recycle the pre-startup process.

[0014] In a possible implementation, the method further includes:

[0015] Obtain a startup instruction for the client;

[0016] Based on the base startup resources that have been loaded, load the functional startup resources;

[0017] Start the client.

[0018] In a possible implementation, the method further includes:

[0019] Detect the amount of device operating resources used during the process of loading the base startup resources;

[0020] If it is detected that the amount of resources is greater than a pre-set resource threshold, stop the execution of loading tasks with priorities lower than the priority threshold, where the loading tasks are used to load some of the base startup resources.

[0021] In a possible implementation, the method further includes:

[0022] If it is detected that non-base startup resources are using device operating resources, end the loading of the non-base startup resources, where the non-base startup resources are resources related to starting the client other than the base startup resources.

[0023] In a possible implementation, the obtaining of the pre-startup instruction for the client includes:

[0024] Obtain a startup prediction result for the client;

[0025] If the startup prediction result indicates that it is predicted that the client will start, trigger the generation of a pre-startup instruction for the client.

[0026] In a possible implementation, the base startup resources include base code resources and base network resources. The base code resources include the code that must be loaded for the startup of the client, and the base network resources are used for the client to establish a network connection with the application server.

[0027] In a second aspect, the present application provides a startup resource loading device for a client, and the device includes:

[0028] A first obtaining unit, configured to obtain a pre-startup instruction for the client;

[0029] A determination unit, configured to determine the basic startup resources and function startup resources included in the startup resources of the client, where the basic startup resources are the resources necessary to start the client, and the function startup resources are the resources related to the functions processed by the client other than the basic startup resources included in the startup resources;

[0030] A preloading unit, configured to load the basic startup resources, so that when starting the client, the function startup resources are loaded based on the basic startup resources to start the client.

[0031] In a possible implementation manner, the preloading unit is specifically configured to call a pre-start process corresponding to the client to load the basic startup resources, and the pre-start process is pre-configured to load the basic startup resources.

[0032] In a possible implementation manner, the device further includes:

[0033] A recycling unit, configured to recycle the pre-start process in response to detecting that the client has completed startup.

[0034] In a possible implementation manner, the device further includes:

[0035] A second acquisition unit, configured to acquire a startup instruction for the client;

[0036] A loading unit, configured to load the function startup resources based on the basic startup resources that have been loaded;

[0037] A startup unit, configured to start the client.

[0038] In a possible implementation manner, the device further includes:

[0039] A detection unit, configured to detect the resource amount of the device running resources used in the process of loading the basic startup resources;

[0040] A first control unit, configured to stop the execution of the loading tasks with priorities lower than the priority threshold if it is detected that the resource amount is greater than a pre-set resource threshold, and the loading tasks are used to load part of the basic startup resources.

[0041] In a possible implementation manner, the device further includes:

[0042] A second control unit, configured to end the loading of the non-basic startup resources if it is detected that the device running resources are used to load the non-basic startup resources, where the non-basic startup resources are the resources related to starting the client other than the basic startup resources.

[0043] In a possible implementation, the first obtaining unit is specifically configured to obtain a startup prediction result for the client; if the startup prediction result indicates that it is predicted that the client starts up, trigger the generation of a pre-startup instruction for the client.

[0044] In a possible implementation, the basic startup resources include basic code resources and basic network resources. The basic code resources include the code that must be loaded for the startup of the client, and the basic network resources are used for the client to establish a network connection with the application server.

[0045] In a third aspect, the present application provides an electronic device, including:

[0046] One or more processors;

[0047] A storage device, on which one or more programs are stored,

[0048] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in the first aspect and any implementation manner in the first aspect.

[0049] In a fourth aspect, the present application provides a computer-readable medium, on which a computer program is stored, where the program, when executed by a processor, implements the method described in the first aspect and any implementation manner in the first aspect.

[0050] In a fifth aspect, the present application provides a computer program product, which, when running on a device, causes the device to execute the method described in the first aspect and any implementation manner in the first aspect.

[0051] Thus, the present application has the following beneficial effects:

[0052] The present application provides a method, apparatus, device and medium for loading startup resources of a client. In this method, a pre-startup instruction for the client is obtained; the startup resources of the client are determined. The startup resources include basic startup resources and functional startup resources. The basic startup resources are the necessary resources for starting up the client. The functional startup resources are the resources related to the functions processed by the client other than the basic startup resources included in the startup resources. Finally, the basic startup resources are loaded. In this way, only the basic startup resources necessary for the startup of the client can be loaded in the pre-startup stage, reducing the waste of device operation resources while improving the startup efficiency of the client. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 It is a schematic flowchart of a method for loading startup resources of a client provided by an embodiment of the present application;

[0054] Figure 2Schematic diagram of the structure of a client startup resource loading device provided by an embodiment of the present application;

[0055] Figure 3 Schematic diagram of the basic structure of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0056] To facilitate the understanding and explanation of the technical solutions provided by the embodiments of the present application, the background technology of the present application will be described first.

[0057] After the user triggers the startup of the client installed on the electronic device, the electronic device loads the resources required for the client startup, such as libraries, plugins, and user interface elements, etc. And after completing the initial settings for the client, the startup of the client is completed. For a client that needs to load a large number of startup resources, it takes a certain amount of time to load the resources required for startup, and the user waits for a long time for the startup, resulting in a poor user experience. To shorten the time for the user to wait for the client to start, some clients pre-load the startup resources before the user triggers the startup. In this way, when the user triggers the startup of the client, the pre-loaded startup resources can be utilized to start quickly. However, pre-loading resources will cause waste of device running resources. For example, in some cases, the client with pre-loaded resources is not subsequently triggered by the user to start. Some function resources with strong real-time pre-loading, such as the obtained page resources, may become invalid. When starting the client subsequently, the invalid resources need to be re-loaded, wasting the device running resources. Also, for example, in some other cases, the pre-loaded startup resources include resources that the client does not need during the startup process. Pre-loading unnecessary resources will also result in waste of device running resources.

[0058] Based on this, the embodiments of the present application provide a method for loading client startup resources. The operating system obtains a pre-startup instruction for the client; determines the startup resources of the client. The startup resources include basic startup resources and function startup resources. The basic startup resources are the necessary resources for starting the client. The function startup resources are the resources related to the functions processed by the client other than the basic startup resources included in the startup resources. The operating system loads the basic startup resources. In this way, only the necessary basic startup resources for the client startup can be loaded in the pre-startup stage, reducing the waste of device running resources on the premise of improving the client startup efficiency.

[0059] To facilitate the understanding of a method for loading client startup resources provided by an embodiment of the present application, the application scenario of a method for loading client startup resources provided by an embodiment of the present application will be described below.

[0060] Those skilled in the art can understand that this application scenario is only an example in which the implementation manners of the present application can be realized. The applicable scope of the implementation manners of the present application is not limited by any aspect of this application scenario.

[0061] It should be noted that the method for loading startup resources of the client provided in the embodiments of the present application can be applied to an electronic device installed with the client. The embodiments of the present application do not limit the type of the electronic device. As an example, the electronic device is a mobile terminal device. The mobile terminal device is a device such as a smart phone or a tablet computer.

[0062] The operating system of the electronic device obtains a pre-startup instruction for the client. The operating system determines the startup resources of the client. The startup resources include basic startup resources and functional startup resources. The basic startup resources are the resources necessary to start the client. The functional startup resources are the resources related to the functions processed by the client other than the basic startup resources included in the startup resources. The operating system loads the basic startup resources. When the operating system subsequently obtains a startup instruction for the client, it uses the loaded basic startup resources to load the functional startup resources and start the client. In this way, it is possible to pre-load the necessary basic startup resources for startup, reduce the loading of unnecessary resources, and save the device operation resources.

[0063] To facilitate understanding of the technical solution provided in the embodiments of the present application, the following describes a method for loading startup resources of a client provided in the embodiments of the present application with reference to the accompanying drawings.

[0064] See Figure 1 As shown, this figure is a schematic flowchart of a method for loading startup resources of a client provided in the embodiments of the present application. As Figure 1 shown, the method may include S101 - S103:

[0065] S101: Obtain a pre-startup instruction for the client.

[0066] The targeted pre-startup instruction is used to trigger the pre-startup of the client.

[0067] The embodiments of the present application do not limit the manner of triggering the generation of the pre-startup instruction for the client.

[0068] In a possible implementation manner, the user triggers the generation of the pre-startup instruction for the client. In another possible implementation manner, other devices or other clients trigger the generation of the pre-startup instruction for the client.

[0069] In another possible implementation, pre-start conditions for generating pre-start instructions for the client are preset. The pre-start conditions are, for example, that the user accesses the operating system interface where the icon of the client is located. The pre-start conditions are also, for example, that the user enters the name of the client in the search box for searching the client. When the pre-start conditions are met, it triggers the generation of a start prediction result indicating the predicted start of the client. The operating system obtains the start prediction result for the client, and when it determines that the start prediction result indicates the predicted start of the client, it triggers the generation of a pre-start instruction for the client.

[0070] S102: Determine the basic start resources and functional start resources included in the start resources of the client. The basic start resources are the resources necessary for starting the client, and the functional start resources are the resources related to the functions processed by the client other than the basic start resources included in the start resources.

[0071] After determining that the client needs to be pre-started, determine the start resources of the client. The start resources of the client are the resources related to the start of the client. The start resources of the client can be preset based on the start requirements of the client.

[0072] The start resources of the client include basic start resources and functional start resources.

[0073] The basic start resources are the resources necessary for starting the client. As an example, the basic start resources include basic code resources and basic network resources. The basic code resources include the code that must be loaded for the start of the client. The basic code resources are, for example, the class files that need to be loaded for the start of the preset client. The client can be run using the basic code resources. The basic network resources are used for the client to establish a network connection with the application server. Using the basic network resources, the client can establish a network connection with the application server and obtain the resources sent by the application server. In this way, the time consumed for the network connection between the client and the server during startup can be reduced.

[0074] The functional start resources are the resources for the functions related to the start of the client. The functional start resources are related to the functions processed by the client. For example, the client is a client with a video playback function. The functional start resources are, for example, video resources. For example, the client is a client with a text content viewing function. The functional start resources are, for example, page resources. The page resources are used to load the content displayed in the display page of the client.

[0075] The embodiments of the present application do not limit the method for determining the basic startup resources and functional startup resources included in the startup resources. In a possible implementation, the types of resources included in the startup resources are preset. As an example, the resource information of the basic startup resources is preset. Using the resource information of the basic startup resources, the basic startup resources are determined. The startup resources other than the basic startup resources are used as functional startup resources. In another possible implementation, the information of the startup resources to be loaded is obtained, and based on the information of the startup resources, the basic startup resources and functional startup resources are determined. As an example, the information of the startup resources includes the content of the startup resources. If the content of the startup resource is code resource, then the startup resource is used as the basic startup resource. If the content of the startup resource is page resource, then the startup resource is used as the functional startup resource. In yet another possible implementation, based on the startup resources loaded by the client in multiple historical loads, the unchanged startup resources are determined as the basic startup resources, and the changed startup resources are determined as the functional startup resources.

[0076] S103: Load the basic startup resources so that when starting the client, based on the basic startup resources, load the functional startup resources and start the client.

[0077] After determining the basic startup resources, load the basic startup resources. The loaded basic startup resources can support loading the functional startup resources when the client starts, thereby starting the client.

[0078] The embodiments of the present application do not limit the method for loading the basic startup resources. In a possible implementation, a process for loading the basic startup resources is created. In another possible implementation, the pre-startup process corresponding to the client is called to load the basic startup resources. The pre-startup process is pre-configured and is a process for loading the basic startup resources. The pre-startup process is a lightweight process. By calling the pre-startup process, the basic startup resources of the client are loaded.

[0079] Based on the relevant content of S101 - S103 above, pre-loading the basic startup resources can shorten the startup time of the client, improve the startup efficiency of the client, avoid pre-loading and initializing unnecessary resources, and save the device running resources, such as saving the memory resources and power of the device. In addition, pre-loading the basic startup resources can reduce the possibility of startup failure when the client starts and improve the startup success rate of the client.

[0080] In a possible implementation, after the client is pre-started, a start instruction for the client is obtained. The embodiments of the present application do not limit the manner of obtaining the start instruction for the client. As an example, in response to a user's click operation on the client icon, a start instruction for the client is generated. As another example, in response to a user's click operation on the client start button, a start instruction for the client is generated. As yet another example, a start instruction for the client triggered by another application is obtained.

[0081] Based on the base start resources that have been loaded, the function start resources are loaded. Using the base start resources as the running basis, the function start resources are loaded. As an example, based on the base network resources included in the base start resources, the page resources included in the function start resources are obtained. And based on the base code resources, the page resources are processed to generate the page displayed by the client.

[0082] After the loading of the function start resources is completed, the client is started. In this way, on the basis of the loaded base start resources, the function start resources can be loaded, reducing the device running resources consumed by resource loading in the pre-start phase while improving the start efficiency.

[0083] Furthermore, in the scenario where the pre-start process corresponding to the client is called to load the base start resources, in response to detecting that the client has completed starting, the pre-start process is recycled. Detecting that the client has completed starting indicates that the base start resources have been loaded and the client has been started using the base start resources. Recycling the pre-start process can save device running resources and improve device performance.

[0084] During the pre-start process, the device running resources can also be managed. The embodiments of the present application provide a method for loading start resources of a client. In addition to the above steps, the method further includes the following steps:

[0085] A1: Detect the amount of device running resources used during the process of loading the base start resources.

[0086] During the process of loading the base start resources, the used device running resources are detected. Detecting the amount of used device running resources can determine the usage of the device running resources. The device running resources are, for example, CPU (Central Processing Unit) resources, memory resources, etc.

[0087] A2: If it is detected that the amount of resources is greater than a pre-set resource threshold, stop the execution of loading tasks with a priority lower than the priority threshold. The loading tasks are used to load some of the base start resources.

[0088] The pre-set resource threshold is the maximum device operating resources that can be occupied by loading the basic startup resources. The resource threshold can be determined based on the device operating resources required to load the basic startup resources under normal circumstances and the maximum value of the device operating resources.

[0089] During the process of loading the basic startup resources, if it is detected that the amount of device operating resources occupied by loading the basic startup resources is greater than the resource threshold, it indicates that the device operating resources occupied by loading the basic startup resources are relatively large.

[0090] It should be noted that during the process of loading the basic startup resources, multiple loading tasks need to be executed. Each loading task is used to load a part of the basic startup resources. The loading tasks have corresponding priorities. The priority of a loading task is determined based on the importance of the loading task. When the amount of resources is greater than the pre-set resource threshold, the execution of the loading tasks with priorities lower than the priority threshold is stopped. The priority threshold can be pre-set. The importance of the loading tasks with priorities lower than the priority threshold is relatively low, and their execution can be delayed or stopped. In this way, when the device operating resources are in short supply, the loading tasks with higher priorities, that is, the more important loading tasks, can be executed first, optimizing the usage mode of the device operating resources. The embodiments of the present application do not limit the processing method of the stopped loading tasks. In one possible implementation, the stopped loading tasks are started to be executed at regular intervals. As an example, taking the stop time of the execution of the loading task as the starting time, when a preset time length has elapsed since the stop time, the stopped loading task is continued to be executed. As another example, when a preset time point is reached, the stopped loading task is continued to be executed.

[0091] In some scenarios, during the process of loading the basic startup resources, non-basic startup resources related to the basic startup resources may be loaded. Non-basic startup resources are resources related to starting the client other than the basic startup resources.

[0092] The embodiments of the present application provide a method for loading startup resources of a client. In addition to the above steps, the method further includes the following steps:

[0093] If it is detected that the device operating resources are used for loading non-basic startup resources, the loading of the non-basic startup resources is ended.

[0094] Non-basic startup resources are startup resources that are not necessarily loaded during the pre-startup process. When it is detected that non-basic startup resources are being loaded, the loading of the non-basic startup resources is ended, optimizing the usage efficiency of the device operating resources.

[0095] Based on the method for loading startup resources of a client provided by the above method embodiments, the embodiments of the present application further provide a device for loading startup resources of a client. The device for loading startup resources of the client will be described below with reference to the accompanying drawings.

[0096] See Figure 2 As shown, this figure is a schematic structural diagram of a startup resource loading device for a client provided by an embodiment of the present application. As Figure 2 shown, the startup resource loading device for the client includes:

[0097] A first acquisition unit 201, configured to acquire a pre-startup instruction for the client;

[0098] A determination unit 202, configured to determine the basic startup resources and functional startup resources included in the startup resources of the client, where the basic startup resources are the necessary resources for starting the client, and the functional startup resources are the resources related to the functions processed by the client other than the basic startup resources included in the startup resources;

[0099] A preloading unit 203, configured to load the basic startup resources, so that when starting the client, based on the basic startup resources, load the functional startup resources and start the client.

[0100] In a possible implementation manner, the preloading unit 203 is specifically configured to call a pre-startup process corresponding to the client to load the basic startup resources, and the pre-startup process is pre-configured for loading the basic startup resources.

[0101] In a possible implementation manner, the device further includes:

[0102] A recycling unit, configured to recycle the pre-startup process in response to detecting that the client has completed startup.

[0103] In a possible implementation manner, the device further includes:

[0104] A second acquisition unit, configured to acquire a startup instruction for the client;

[0105] A loading unit, configured to load the functional startup resources based on the basic startup resources that have been loaded;

[0106] A startup unit, configured to start the client.

[0107] In a possible implementation manner, the device further includes:

[0108] A detection unit, configured to detect the amount of device operation resources used during the process of loading the basic startup resources;

[0109] A first control unit, configured to stop the execution of loading tasks with a priority lower than the priority threshold if it is detected that the amount of resources is greater than a pre-set resource threshold, and the loading tasks are used to load some of the basic startup resources.

[0110] In a possible implementation, the device further includes:

[0111] A second control unit, configured to end the loading of the non-basic startup resource if it is detected that the non-basic startup resource uses the device operating resource, where the non-basic startup resource is a resource related to starting the client other than the basic startup resource.

[0112] In a possible implementation, the first obtaining unit is specifically configured to obtain a startup prediction result for the client; if the startup prediction result indicates that it is predicted that the client starts up, trigger the generation of a pre-startup instruction for the client.

[0113] In a possible implementation, the basic startup resources include basic code resources and basic network resources, the basic code resources include the code that must be loaded for the client to start up, and the basic network resources are used for the client to establish a network connection with the application server.

[0114] Based on the client startup resource loading method provided in the above method embodiments, the present application further provides an electronic device, including: one or more processors; a storage device storing one or more programs thereon, and when the one or more programs are executed by the one or more processors, the one or more processors implement the client startup resource loading method as described in any of the above embodiments.

[0115] Next, referring to Figure 3 , which shows a schematic structural diagram of an electronic device 300 suitable for implementing the embodiments of the present application. The terminal device in the embodiments of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (portable android devices, tablet computers), PMPs (Portable Media Players), in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs (televisions), desktop computers, etc. Figure 3 The electronic device shown is only an example and should not impose any limitation on the functions and usage scope of the embodiments of the present application.

[0116] As Figure 3As shown, the electronic device 300 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 301, which may perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 302 or the program loaded from the storage device 308 into the random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other through a bus 304. The input / output (I / O) interface 305 is also connected to the bus 304.

[0117] Generally, the following devices may be connected to the I / O interface 305: an input device 308 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 308 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 309. The communication device 309 may allow the electronic device 300 to communicate with other devices wirelessly or wiredly to exchange data. Although Figure 3 an electronic device 300 with various devices is shown, it should be understood that it is not required to implement or include all the shown devices. Instead, more or fewer devices may be implemented or included.

[0118] Specifically, according to an embodiment of the present application, the process described above with reference to the flowchart may be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes program codes for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, the above functions defined in the method of the embodiment of the present application are executed.

[0119] The electronic device provided by the embodiment of the present application and the startup resource loading method of the client provided by the above embodiment belong to the same inventive concept. Technical details not described in detail in this embodiment may be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0120] Based on the startup resource loading method of a client provided by the above method embodiment, an embodiment of the present application provides a computer storage medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the startup resource loading method of the client as described in any of the above embodiments.

[0121] It should be noted that the computer-readable medium described above in the present application can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. In the present application, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, and this computer-readable signal medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0122] In some embodiments, the client and the server can communicate using any currently known or future-developed network protocol such as HTTP (Hyper Text Transfer Protocol), and can be interconnected with digital data communication in any form or medium (e.g., a communication network). Examples of the communication network include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future-developed network.

[0123] The above computer-readable medium can be included in the above electronic device; or it can exist separately and not be assembled into the electronic device.

[0124] The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the electronic device, the electronic device is caused to execute the method for loading startup resources of the above client.

[0125] Computer program code for performing the operations of this application can be written in one or more programming languages or combinations thereof. The above-mentioned programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, by using an Internet service provider to connect through the Internet).

[0126] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in the flowchart or block diagram can represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks shown can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, as well as combinations of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0127] The units involved in the embodiments described in this application can be implemented in software or in hardware. Among them, the name of the unit / module does not constitute a limitation to the unit itself in some cases. For example, the voice data acquisition module can also be described as the "data acquisition module".

[0128] The functions described above herein can be performed at least in part by one or more hardware logic components. For example, by way of non-limitation, exemplary types of hardware logic components that can be used include: field programmable gate arrays (FPGA), application specific integrated circuits (ASIC), application specific standard products (ASSP), systems on a chip (SOC), complex programmable logic devices (CPLD), and so on.

[0129] In the context of the present application, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0130] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. For the same or similar parts among the various embodiments, reference can be made to each other. For the systems or devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and reference can be made to the description in the method part for related parts.

[0131] It should be understood that in the present application, "at least one (item)" means one or more, and "a plurality" means two or more. "And / or" is used to describe the association relationship of associated objects and indicates that three relationships can exist. For example, "A and / or B" can mean: only A exists, only B exists, and both A and B exist simultaneously. Here, A and B can be singular or plural. The character " / " generally indicates an "or" relationship between the associated objects before and after. "At least one (one) of the following" or a similar expression refers to any combination of these items, including any combination of single items (one) or plural items (ones). For example, at least one (one) of a, b, or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0132] It should also be noted that, in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the said element.

[0133] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but rather to the broadest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for loading startup resources of a client, characterized in that The method includes: Obtaining a pre-start instruction for the client; Determining the basic start-up resources and functional start-up resources included in the start-up resources of the client, where the basic start-up resources are the resources necessary to start the client, and the functional start-up resources are the resources related to the functions processed by the client other than the basic start-up resources included in the start-up resources; Loading the basic start-up resources so that when starting the client, based on the basic start-up resources, load the functional start-up resources and start the client.

2. The method according to claim 1, characterized in that, The loading of the basic start-up resources includes: Invoking a pre-start process corresponding to the client to load the basic start-up resources, where the pre-start process is pre-configured for loading the basic start-up resources.

3. The method according to claim 2, wherein The method further includes: In response to detecting that the client has completed starting up, recycling the pre-start process.

4. The method according to claim 1, wherein The method further includes: Obtaining a start-up instruction for the client; Based on the loaded basic start-up resources, loading the functional start-up resources; Starting the client.

5. The method according to any one of claims 1 to 4, characterized in that The method further includes: Detecting the amount of device running resources used during the process of loading the basic start-up resources; If it is detected that the amount of resources is greater than a pre-set resource threshold, stopping the execution of loading tasks with a priority lower than the priority threshold, where the loading tasks are used to load some of the basic start-up resources.

6. The method according to any one of claims 1-4, characterized in that The method further includes: If it is detected that non-basic start-up resources use device running resources, ending the loading of the non-basic start-up resources, where the non-basic start-up resources are the resources other than the basic start-up resources and related to starting the client.

7. The method according to any one of claims 1 to 4, characterized in that The obtaining of the pre-start instruction for the client includes: Obtaining a start-up prediction result for the client; If the start-up prediction result indicates that it is predicted that the client will start up, triggering the generation of a pre-start instruction for the client.

8. The method according to any one of claims 1-4, characterized in that The basic start-up resources include basic code resources and basic network resources. The basic code resources include the code that must be loaded for the client to start up, and the basic network resources are used for the client to establish a network connection with the application server.

9. A startup resource loading device for a client, characterized in that The device includes: A first obtaining unit for obtaining a pre-start instruction for the client; A determining unit for determining the basic start-up resources and functional start-up resources included in the start-up resources of the client, where the basic start-up resources are the resources necessary to start the client, and the functional start-up resources are the resources related to the functions processed by the client other than the basic start-up resources included in the start-up resources; A pre-loading unit for loading the basic start-up resources so that when starting the client, based on the basic start-up resources, load the functional start-up resources and start the client.

10. An electronic device, characterized in that, Includes: One or more processors; A storage device on which one or more programs are stored. When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1-8.

11. A computer-readable medium, characterized in that, A computer program is stored thereon, where when the program is executed by a processor, it implements the method according to any one of claims 1-8.