WO2021121188A1 - 配置文件的处理方法、装置、系统及存储介质 - Google Patents

配置文件的处理方法、装置、系统及存储介质 Download PDF

Info

Publication number
WO2021121188A1
WO2021121188A1 PCT/CN2020/136154 CN2020136154W WO2021121188A1 WO 2021121188 A1 WO2021121188 A1 WO 2021121188A1 CN 2020136154 W CN2020136154 W CN 2020136154W WO 2021121188 A1 WO2021121188 A1 WO 2021121188A1
Authority
WO
WIPO (PCT)
Prior art keywords
configuration file
target
code
hotspot
file
Prior art date
Application number
PCT/CN2020/136154
Other languages
English (en)
French (fr)
Inventor
帅朝春
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2021121188A1 publication Critical patent/WO2021121188A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • This application relates to the field of computer technology, and more specifically, to a method, device, system, and storage medium for processing configuration files.
  • the frequently used method or code of the application is usually used as the hot code, and the hot code is compiled into binary machine code in advance, and the compiled binary machine code can be used to run the application next time Time is directly executed by the processor, thereby increasing the running speed of the application.
  • Some manufacturers collect the hot code of the application and push it to the user's terminal device. For the terminal device, all the hot code of the application is compiled. However, for applications that are not commonly used by users, all hot codes are compiled, and the compiled files will cause a waste of storage space.
  • this application proposes a method, device, system, and storage medium for processing configuration files.
  • an embodiment of the present application provides a method for processing a configuration file, which is applied to a server, and the method includes: acquiring the popularity of the target application when an acquisition request sent by a terminal device is received, and the acquisition request is used for Acquire the hotspot code of the target application; according to the popularity, determine at least one of the multiple configuration files corresponding to the target application as a target configuration file, and the multiple configuration files are preliminarily based on the target application’s Hotspot code generation, each of the multiple configuration files has a different size; sending the target configuration file to the terminal device, and the target configuration file is used to instruct the terminal device to respond to the target configuration file The hot code in is pre-compiled.
  • an embodiment of the present application provides a configuration file processing method, which is applied to a terminal device, and the method includes: sending an acquisition request to a server, the acquisition request being used to acquire the hotspot code of the target application; and receiving the A target configuration file issued by the server, the target configuration file being determined by the server from a plurality of configuration files corresponding to the target application according to the popularity of the target application, and the plurality of configuration files are determined in advance according to the target application.
  • the hot code of the application is generated, each of the multiple configuration files has a different size; the hot code in the target configuration file is pre-compiled, and the compiled file obtained after the pre-compilation is stored.
  • an embodiment of the present application provides a configuration file processing device, which is applied to a server.
  • the device includes: a request receiving module, a file obtaining module, and a file sending module, wherein the request receiving module is used for receiving When the acquisition request sent by the terminal device is received, the popularity of the target application is acquired, and the acquisition request is used to acquire the hotspot code of the target application; the file acquisition module is used to determine the number corresponding to the target application according to the popularity.
  • At least one of the configuration files is used as a target configuration file, the multiple configuration files are generated in advance according to the hotspot code of the target application, and the size of each configuration file in the multiple configuration files is different; the file The sending module is configured to send the target configuration file to the terminal device, and the target configuration file is used to instruct the terminal device to precompile the hotspot code in the target configuration file.
  • an embodiment of the present application provides a configuration file processing device, which is applied to a terminal device.
  • the device includes: a request sending module, a file receiving module, and a code compiling module, wherein the request sending module is used to send The acquisition request is sent to the server, and the acquisition request is used to acquire the hotspot code of the target application; the file receiving module is used to receive the target configuration file issued by the server, and the target configuration file is determined by the server according to the target application The popularity of is determined from multiple configuration files corresponding to the target application, the multiple configuration files are generated in advance according to the hotspot code of the target application, and the size of each configuration file in the multiple configuration files is different;
  • the code compilation module is used to precompile the hotspot code in the target configuration file, and store the compiled file obtained after the precompilation.
  • an embodiment of the present application provides a configuration file processing system, the system includes a server and a terminal device, the server is in communication connection with the terminal device, and the terminal device is used to send an acquisition request to The server, the acquisition request is used to acquire the hotspot code of the target application; the server is used to receive the acquisition request, and when the acquisition request sent by the terminal device is received, acquire the popularity of the target application, and according to the popularity, It is determined that at least one configuration file of the multiple configuration files corresponding to the target application is used as the target configuration file, and the multiple configuration files are generated in advance according to the hotspot code of the target application, and each of the multiple configuration files The size of the configuration file is different; the server is also used to send the target configuration file to the terminal device; the terminal device is also used to receive the target configuration file, and perform the hotspot code in the target configuration file Pre-compile and store the compiled file obtained after pre-compilation.
  • an embodiment of the present application provides a server, including: one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and are It is configured to be executed by the one or more processors, and the one or more programs are configured to execute the processing method of the configuration file provided in the first aspect.
  • an embodiment of the present application provides a terminal device, including: one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and It is configured to be executed by the one or more processors, and the one or more programs are configured to execute the processing method of the configuration file provided in the second aspect described above.
  • an embodiment of the present application provides a computer-readable storage medium.
  • the computer-readable storage medium stores program code, and the program code can be invoked by a processor to execute the configuration provided in the first aspect.
  • the server obtains the popularity of the target application when receiving the acquisition request sent by the terminal device.
  • the acquisition request is used to obtain the hotspot code of the target application, and then determines multiple configurations corresponding to the target application according to the popularity
  • At least one configuration file in the file is used as a target configuration file.
  • the multiple configuration files are generated in advance according to the hot code of the target application, and the size of each configuration file in the multiple configuration files is different, the target configuration file is sent to the terminal device, The target configuration file is used to instruct the terminal device to precompile the hotspot code in the target configuration file.
  • the size of the pushed configuration file is determined by the popularity of the application, which avoids that the pushed configuration file is large, and the popularity of the application is small, resulting in waste of storage space of the terminal device .
  • Fig. 1 shows a schematic diagram of an application scenario provided according to an embodiment of the present application.
  • Fig. 2 shows another schematic diagram of an application scenario provided according to an embodiment of the present application.
  • Fig. 3 shows a flowchart of a method for processing a configuration file according to an embodiment of the present application.
  • Fig. 4 shows a flowchart of a method for processing a configuration file according to another embodiment of the present application.
  • Fig. 5 shows a flowchart of a method for processing a configuration file according to another embodiment of the present application.
  • Fig. 6 shows a flowchart of a method for processing a configuration file according to still another embodiment of the present application.
  • Fig. 7 shows a flowchart of a method for processing a configuration file according to yet another embodiment of the present application.
  • Fig. 8 shows a block diagram of an apparatus for processing configuration files according to an embodiment of the present application.
  • Fig. 9 shows a block diagram of an apparatus for processing configuration files according to another embodiment of the present application.
  • FIG. 10 is a block diagram of a terminal device for executing the method for processing a configuration file according to an embodiment of the present application according to an embodiment of the present application.
  • FIG. 11 is a block diagram of a server for executing the method for processing configuration files according to an embodiment of the present application according to an embodiment of the present application.
  • Fig. 12 is a storage unit for storing or carrying program codes for implementing the configuration file processing method according to the embodiment of the present application according to an embodiment of the present application.
  • Android has two virtual machine execution environments: Dalvik virtual machine and Art virtual machine.
  • the execution environment of the Dalvik virtual machine every time the application runs, the bytecode needs to be converted into machine code by a just-in-time compiler (JIT compiler) before it can be run by the device, which will slow down the application.
  • JIT compiler just-in-time compiler
  • the Art virtual machine began to replace the Dalvik virtual machine.
  • the system will use a tool named dex2oat to compile the dex file in the APK into The oat file containing the local machine code is stored. After doing this, when the program is executed, the compiled machine code can be used directly to speed up efficiency.
  • AOT Ahead Of Time
  • the original AOT was changed to a hybrid compilation of interpreter (Interpreter) + JIT + AOT.
  • the JAVA program is initially only interpreted and executed by the JAVA interpreter (Interpreter), that is, the bytecode is interpreted and executed one by one.
  • the execution speed of this method is relatively slow, especially when a method or code block is run very frequently. The execution efficiency is very low. So later, the JIT compiler was introduced into the virtual machine.
  • the virtual machine When the virtual machine found that a certain method or code block was running very frequently, it would identify these codes as "hot spot code”, and record it and save it to profile file (configuration file), in order to improve the execution efficiency of the hot code, at runtime, the virtual machine will compile these codes into machine code related to the local platform, and it is the JIT compiler that is responsible for this task. To put it simply, the profile file records the frequently run methods or code blocks of the application. After JIT or AOT compilation, the .odex/.oat file is obtained. The file contains the binary machine code compiled by these hot codes, which can be directly handed over The central processing unit (Central Processing Unit, CPU) executes, thereby improving the running speed.
  • CPU Central Processing Unit
  • the oat file can be directly run by the Art virtual machine because it contains the machine code that the program runs.
  • the dex file if it is a cold code (non-hot code), it will be executed by the JAVA interpreter. If it is a hot code (hot code), it will be compiled by JIT in real time and stored in JIT CODE CACHE. You will visit it again next time. For hotspots, the corresponding machine code can be executed directly from the cache.
  • the dex file will not be compiled when the application is installed.
  • the dex file will be directly run through the Interpreter first. Frequently run functions or code blocks will be recognized as hot code.
  • the hot code is compiled by JIT and stored in JIT CODE CACHE.
  • a profile file is generated to record the information of the hot function.
  • the mobile terminal is entering IDLE (idle) and charging (charging) In the state, the system scans the profile file in the application directory and executes the AOT process for compilation.
  • the binary machine code after AOT compilation can be directly handed over to the Central Processing Unit (CPU) for execution, thereby improving the running speed. In this way, the mobile terminal needs to collect the hotspot code by itself.
  • the compilation of the hotspot code depends on the device being triggered in the idle maintenance mode, so the performance improvement can only be enjoyed after using the application for a period of time.
  • Some manufacturers collect application configuration files from users' mobile terminals and upload them to the cloud.
  • the user can use the mobile terminal to download the configuration file from the cloud.
  • the mobile terminal After receiving the configuration file, the mobile terminal will compile the hot code in the configuration file.
  • the compiled file (binary machine code) can be stored to run the hot spot of the application. When coding, it can directly execute the binary machine code, so that the mobile terminal can directly compile according to the downloaded configuration file, so that the mobile terminal does not have to collect and compile the hot code for a long time, and can immediately enjoy the performance of the application at runtime Promote.
  • the inventor proposed the configuration file processing method, device, system, and storage medium provided by the embodiments of the application.
  • the size of the pushed configuration file is determined by the popularity of the application. Make sure to avoid that the pushed configuration file is large and the application is less popular, resulting in waste of storage space of the terminal device.
  • the specific processing method of the configuration file will be described in detail in the subsequent embodiments.
  • FIG. 1 shows a schematic diagram of an application scenario provided by an embodiment of the present application.
  • the application scenario includes a configuration file processing system 10, and the configuration file processing system 10 includes: a terminal The device 100 and the first server 200.
  • the terminal device 100 communicates with the first server 200 through a network.
  • the terminal device 100 may perform data interaction with the first server 200 to obtain file data such as configuration files of the application program from the first server 200.
  • FIG. 2 shows another schematic diagram of an application scenario provided by an embodiment of the present application.
  • the configuration file processing system 10 may also include: a terminal device 100, a first server 200, and The second server 300. Wherein, the terminal device 100 and the first server 200 exchange data, and the first server 200 and the second server 300 may also exchange data.
  • the first server 200 can be used to process requests from the terminal device 100, and the second server 300 can be used to store and manage file data such as application configuration files and installation packages.
  • the terminal device 100 obtains the application files from the first server 200
  • the first server 200 may obtain the application file from the second server 300 and send the application file to the terminal device 100.
  • the configuration file processing system 10 may also include other servers.
  • the configuration file processing system 10 may further include a third server, and the third server may be used to collect application configuration files from the user's terminal device, and transfer the collected configuration files to the second server 200 for sorting and storage, etc.
  • the configuration file processing system 10 may also include a fourth server, the fourth server may be used to store and manage application installation packages, etc., in this case, the second server 200 may store and manage application programs
  • the configuration file realizes the separate management and storage of the installation package and configuration file of the application.
  • the aforementioned terminal device 100 may be a smart phone, a tablet computer, an e-book, a smart watch, etc.; the first server 200, the second server 300 and other servers may be traditional servers or cloud servers. This is not limited.
  • FIG. 3 shows a schematic flowchart of a configuration file processing method provided by an embodiment of the present application.
  • This configuration file processing method can be applied to the server in the above configuration file processing system.
  • the following will take a terminal device as an example to illustrate the specific process of this embodiment.
  • the following will elaborate on the process shown in FIG. 3, and the processing method of the configuration file may specifically include the following steps:
  • Step S110 When receiving the acquisition request sent by the terminal device, acquire the popularity of the target application, and the acquisition request is used to acquire the hotspot code of the target application.
  • the obtaining request may be generated by the terminal device, and the obtaining request is used to obtain the file data of the target application from the server.
  • the acquisition request may be used at least to acquire the hotspot code of the target application.
  • the application may be an application that has not been installed on the terminal device, or an application that has been installed on the terminal device without compiling the hotspot code, which is not limited here.
  • the terminal device may generate the above-mentioned acquisition request according to the user operation of the user, and then send it to the server, so that the server receives the acquisition request.
  • the terminal device detects the hotspot code of the target application in the interface of the software store.
  • the obtaining operation of the target application generates an obtaining request for obtaining the hotspot code of the target application.
  • the terminal device actively generates an acquisition request for acquiring the hotspot code of the target application, and then sends it to the server, so that the server receives the acquisition request. request.
  • the terminal device may also generate an acquisition request for simultaneously acquiring the installation package and the hotspot code when downloading the application, and send it to the server, so that the server receives the acquisition request.
  • the server may obtain the popularity of the target application when receiving the above obtaining request from the terminal device.
  • the popularity can be used to characterize the level of downloads of the application. The greater the download, the higher the popularity, and the lower the download, the lower the popularity.
  • the expression of popularity can be the ranking from the highest to the bottom, or the number of downloads, etc., which is not limited here.
  • the server may determine the popularity of the target application according to the popularity data of the target application in the application store.
  • the server is a server of an application store
  • the heat data of the target application can be directly obtained locally; when the server is not a server of an application store, the heat data of the target application can be obtained from the server of the application store.
  • the server may also obtain the popularity data of the target application from a service platform that counts the popularity of the application, and determine the popularity of the target application.
  • the specific manner in which the server obtains the popularity of the target application may not be a limitation.
  • Step S120 According to the popularity, determine at least one configuration file of the multiple configuration files corresponding to the target application as a target configuration file, and the multiple configuration files are generated in advance according to the hotspot code of the target application. The size of each configuration file in multiple configuration files is different.
  • the server after the server obtains the popularity of the target application, it can determine the configuration file that needs to be pushed to the terminal device according to the popularity of the target application. Among them, the server can determine the configuration file to be pushed from multiple configuration files corresponding to the target application.
  • multiple configuration files corresponding to the target application are generated in advance based on the hotspot code of the target application, and each configuration file includes the hotspot code of the target application, that is, the aforementioned profile file that records the hotspot code of the application. And the size of each configuration file in the multiple configuration files is different, that is, the size of the hotspot code in the configuration file is different.
  • all hotspot codes corresponding to the target application can be divided into multiple parts according to the set rules, and the size of the hotspot code of each part is different, and then according to the hotspot of each part Code to generate a configuration file to obtain multiple configuration files of different sizes.
  • the hotspot codes corresponding to the target application according to the different functions of the hotspot codes, it can be divided into multiple hotspot codes, and then according to the size of the hotspot code, according to the combination of one or more hotspot codes, Different configuration files are generated, and the size of the hotspot code in each configuration file is different.
  • the specific manner in which multiple configuration files are formed may not be regarded as a limitation.
  • the server obtains at least one configuration file from the multiple configuration files of the target application as the target configuration file according to the popularity of the target application.
  • the server may select the target configuration file according to the popularity of the target application and the size of the configuration file.
  • the configuration file of the target size corresponding to the heat can be a configuration file, or a combination of multiple configuration files, that is, it can be a configuration file whose size is the target size, or the total size of the selection
  • Multiple configuration files of the target size are not limited here. Thereby, the size of the target configuration file can correspond to the heat.
  • the correspondence between the popularity and the target size may be a relationship in which the target size is proportional to the popularity, that is, the greater the popularity, the larger the size of the target profile.
  • it can also be the heat in the same interval, corresponding to the same target size, that is, you can obtain the same size configuration file, and the interval with a big heat, the corresponding target size is also larger, and it is determined by the heat interval. Differentiate the size of the target configuration file that needs to be pushed. When the popularity of the application is less than a certain value, the size of the target configuration file to be pushed is also reduced accordingly to avoid waste of storage space.
  • the specific rules for obtaining at least one profile according to the degree of heat may not be a limitation.
  • one or more configuration files of the first size are selected as the target profile. If it is less than the second threshold, select one or more configuration files of the second size, and the first size is greater than the second size, and the first threshold is greater than the second threshold, so that the size of the target configuration file can correspond to the popularity of the application , And ensure that when the popularity is less than a certain value, the size of the target configuration file to be pushed is reduced accordingly to avoid waste of storage space.
  • multiple configuration files of the target application are stored in the server, and the server can directly obtain at least one configuration file from the multiple configuration files as the target configuration file according to the popularity.
  • multiple configuration files of the target application are stored in other servers, and the server that receives the acquisition request may store the identification of each configuration file, and the identification of at least one configuration file corresponding to the degree of popularity may be obtained from The other server obtains at least one configuration file corresponding to the popularity as the target configuration file.
  • Step S130 Send the target configuration file to the terminal device, where the target configuration file is used to instruct the terminal device to precompile the hotspot code in the target configuration file.
  • the server that receives the acquisition request may send the target configuration file to the aforementioned terminal device, so that the terminal device that sends the acquisition request can obtain the target configuration file.
  • the target configuration file includes hotspot codes of a corresponding size.
  • the target configuration file can instruct the terminal device to precompile the hotspot codes therein, and store the precompiled compiled files.
  • the files in the compiled file are binary machine codes. Therefore, when the terminal device runs the hotspot code in the target configuration file, it can directly execute the binary machine code in the compiled file to improve the efficiency of running the target application.
  • the size of the target configuration file pushed to the terminal device corresponds to the popularity, which also avoids pushing the configuration files corresponding to all the hot codes of the target application, resulting in the avoidance of pushing the configuration file to be large, but the application When the heat is low, the storage space of the terminal device is wasted.
  • the server obtains the popularity of the target application when receiving the acquisition request sent by the terminal device.
  • the acquisition request is used to obtain the hotspot code of the target application, and then determines the target based on the popularity
  • At least one of the multiple configuration files corresponding to the application is used as the target configuration file.
  • the multiple configuration files are generated in advance according to the hot code of the target application, and the size of each configuration file in the multiple configuration files is different.
  • the file is sent to the terminal device, and the target configuration file is used to instruct the terminal device to precompile the hotspot code in the target configuration file.
  • the size of the target configuration file pushed to the terminal device corresponds to the popularity, which also avoids pushing the configuration files corresponding to all the hot codes of the target application, resulting in a larger configuration file to avoid pushing, but the application's popularity is higher
  • the terminal device stores the compiled file after compiling all the hot codes in the configuration file, the storage space of the terminal device is wasted.
  • FIG. 4 shows a schematic flowchart of a configuration file processing method provided by another embodiment of the present application.
  • This configuration file processing method is applied to the server in the above configuration file processing system.
  • the following will elaborate on the process shown in FIG. 4, and the processing method of the configuration file may specifically include the following steps:
  • Step S210 When receiving the acquisition request sent by the terminal device, acquire the popularity of the target application, and the acquisition request is used to acquire the hotspot code of the target application.
  • step S210 can refer to the content of the foregoing embodiment, which will not be repeated here.
  • Step S220 Determine the heat degree range to which the heat degree belongs.
  • the server when the server determines the target profile for pushing from the multiple profiles corresponding to the target application according to the popularity of the target application, it may determine the target profile according to the heat range to which the popularity belongs.
  • the popularity may be a ranking of the number of downloads of the application.
  • the division of the specific heat range can be divided according to the ranking of downloads. For example, the top N places are in a heat range, the N+1th to Mth places are in a heat range, and the rankings after M+1 are regarded as a heat range, where M and N are both positive integers, and M is greater than N.
  • the specific way of dividing the rankings may not be a limitation.
  • the popularity may be the number of downloads of the application.
  • the specific popularity range can be divided directly according to the amount of downloads. For example, the amount of downloads higher than the first threshold is a range of popularity, and the amount of downloads between the first threshold and the second threshold is a range of popularity, and it is in the second range.
  • the number of downloads between the threshold and the third threshold is a range of popularity.
  • the specific way of dividing the download amount may not be a limitation.
  • Step S230 Obtain at least one configuration file corresponding to the popularity range from a plurality of configuration files corresponding to the target application as a target configuration file.
  • the heat degrees in the same heat degree range correspond to the same configuration file, and the size of the configuration files corresponding to different heat degree ranges is different.
  • the larger the heat range the larger the size of the corresponding configuration file.
  • the size of the target configuration file that needs to be pushed is distinguished by the heat range. When the popularity of the application is less than a certain value, the size of the target configuration file to be pushed is also reduced accordingly, avoiding the waste of storage space.
  • the size of the hotspot code in each of the multiple configuration files of the target application is different, and the server can obtain the target number of configuration files from the multiple configuration files, as the target configuration file, the target number and popularity Scope correspondence.
  • the configuration file corresponding to the heat range among the multiple configuration files is a combination of multiple configuration files, and when there are multiple combinations, the server can also choose from multiple combinations of hot code usage frequencies in the multiple combinations of configuration files.
  • the use frequency of the hot code of the profile meets the preset frequency condition as the target profile.
  • the preset frequency condition may include that the frequency of use of hotspot codes in the selected combination is higher than the frequency of use of hotspot codes in other combinations.
  • the usage frequency of the hotspot codes in the configuration files of multiple combinations is sorted in descending order, and then the hotspot codes of the configuration files of the first p combinations are selected, and p is a positive integer.
  • the frequency of use can be obtained by the server from other terminal devices installed with the target application. Thereby, it can be ensured that the size of the pushed configuration file not only corresponds to the heat range, but also that the pushed configuration file can better meet the needs of users.
  • the configuration file corresponding to the heat range among the multiple configuration files is a combination of multiple configuration files, and when there are multiple combinations, the server may also use the frequency of hotspot codes in the multiple combination configuration files, From multiple combinations, determine the combination with the most frequently used hot code of the profile as the target profile.
  • the server obtaining at least one configuration file corresponding to the popularity range from multiple configuration files corresponding to the target application may include:
  • each of the multiple configuration files has a different size; when the heat range to which the heat belongs is the second heat range, the third configuration is obtained from the multiple configuration files File and the first configuration file as the target configuration file, the size of the third configuration file is smaller than the size of the second configuration file, and the smallest heat in the first heat range is greater than the second heat The maximum heat in the range; when the heat range to which the heat belongs is the third heat range, the first configuration file is obtained from the multiple configuration files as the target configuration file, wherein the second The minimum heat in the heat range is greater than the maximum heat in the third heat range.
  • the first heat range, the second heat range, and the third heat range are ranges in which the heats decrease sequentially.
  • the first heat range may be ranked in the top 50
  • the second The popularity range can be a ranking of 51-100
  • the third popularity range can be a ranking of 101 or higher.
  • the target profile corresponding to the first heat range, the second heat range, and the third heat range all include the first profile
  • the target profile corresponding to the first heat range and the second heat range also includes There are other configuration files (second configuration file or third configuration file).
  • the size of the third configuration file is smaller than the size of the second configuration file, which ensures The size of the target profile corresponding to the first heat range, the second heat range, and the third heat range is reduced in turn.
  • the target profile is pushed to the terminal device, it can be reflected that the heat is less than a certain degree, and the pushed profile is The size is also reduced accordingly, so that for less popular applications, not all hot codes will be compiled, and it will not lead to waste of storage space of the terminal device after the compiled compiled files are stored.
  • the target profile corresponding to different heat ranges may or may not include the same hotspot code, that is, the hotspot codes in the target profile corresponding to different heat ranges are different from each other.
  • Step S240 Send the target configuration file to the terminal device, where the target configuration file is used to instruct the terminal device to precompile the hotspot code in the target configuration file.
  • the server that receives the acquisition request after the server that receives the acquisition request obtains the target configuration file, it can send the target configuration file to the aforementioned terminal device, so that the terminal device that sends the acquisition request can obtain the target configuration file, and Compile the hot code in the target configuration file, and store the compiled file generated by the compilation.
  • the at least two configuration files are used to instruct the terminal device to pre-stage the hotspot codes in the at least two configuration files in stages. Compilation; when the target configuration file includes a configuration file, the target configuration file is used to instruct the terminal device to perform a one-time pre-compilation of the hotspot code in the target configuration file. It is understandable that when the target configuration file includes at least two configuration files, it may lead to a longer compilation time. If the compilation is performed when the application is installed, the installation time will be longer.
  • the installation time can be avoided Too long; if the terminal device is in a compileable state (idle state and charging state), compile, and compile the hotspot code in at least two configuration files at one time, which may cause the compile time to be too long.
  • the terminal device is in a state where it is not satisfied that it can be compiled, and the compilation fails.
  • the state that can be compiled is satisfied, it will recompile the hot codes in at least two configuration files. Compiling in stages can solve this problem well.
  • the obtaining request may also be used to obtain the installation package of the target application, that is, the obtaining request is used to obtain the installation package and the hotspot code of the target application at the same time.
  • the server can also send the installation package to the terminal device.
  • the target configuration file includes at least two configuration files
  • the hot code of one of the configuration files can be compiled when the target application is installed according to the installation package, and the hot code of the other configuration files will be installed on the terminal after the installation is complete. Compile again when the device is in a state where it can be compiled.
  • the hotspot code in the first configuration file at least includes startup Code, and the size of the second configuration file is greater than the size of the first configuration file.
  • the processing method of the configuration file may further include: sending the installation package of the target application to the terminal device.
  • the first configuration file is used to instruct the terminal device to precompile the startup code in the first configuration file while installing the target application according to the installation package; the second configuration file and the third configuration file are used To instruct the terminal device to precompile the hotspot code in the second configuration file or the third configuration file after the installation of the target application is completed.
  • the server pushes the installation package and the target configuration file at the same time, and the startup code is compiled when the application is installed, and the hot code in the remaining configuration files is compiled after the installation.
  • the server obtains the popularity of the target application when receiving the acquisition request sent by the terminal device.
  • the acquisition request is used to obtain the hot code of the target application, and then determines the affiliation according to the popularity
  • the popularity range of the target application is determined, and at least one configuration file corresponding to the popularity range of the multiple configuration files corresponding to the target application is determined as the target configuration file.
  • the multiple configuration files are generated in advance according to the hot spot code of the target application, and each of the multiple configuration files The size of each configuration file is different, the target configuration file is sent to the terminal device, and the target configuration file is used to instruct the terminal device to precompile the hotspot code in the target configuration file.
  • the size of the target configuration file pushed to the terminal device corresponds to the popularity, which also avoids pushing the configuration files corresponding to all the hot codes of the target application, resulting in a larger configuration file to avoid pushing, but the application's popularity is higher
  • the terminal device stores the compiled file after compiling all the hot codes in the configuration file, the storage space of the terminal device is wasted.
  • FIG. 5 shows a schematic flowchart of a configuration file processing method provided by another embodiment of the present application.
  • This configuration file processing method is applied to the server in the above configuration file processing system.
  • the following will elaborate on the process shown in FIG. 5, and the processing method of the configuration file may specifically include the following steps:
  • Step S310 Obtain the hotspot code of the target application.
  • a method of generating multiple configuration files according to the hot code of the target application in advance is also provided.
  • the server can obtain the hot code of the target application.
  • the server may receive the configuration file of the target application sent by other terminals, and store the configuration file. It is understandable that the server may collect the configuration file of the target application from other terminals, and store the configuration file of the target application. Specifically, the server may integrate configuration files from multiple terminal devices, and use the integrated configuration file as a designated configuration file, so that the hot code in the pushed configuration file is more accurate during subsequent push. Wherein, the server may be a server used to process the above-mentioned acquisition request, or may be another server used to store configuration files, which is not limited here. After the server obtains the specified configuration file of the target application, it can obtain the hotspot code of the target application from the specified configuration file.
  • Step S320 Generate multiple configuration files according to the function of the hotspot code in the hotspot code.
  • the number of functions implemented by the hotspot code in each configuration file is different, and the size of the hotspot code in each configuration file is different.
  • the server can generate multiple configuration files according to the function of the hotspot code in the hotspot code.
  • the number of functions implemented by the hotspot code in each configuration file is different, and the size of the hotspot code in each configuration file is different. .
  • the target configuration file is determined from multiple configuration files, it can be determined according to the functions implemented by the hotspot code, so as to meet the needs of users.
  • the server generates multiple configuration files according to the function of the hot code in the hot code, which may include: separating multiple hot codes from the hot code according to the function of the hot code in the hot code , Each hotspot code has a different function; from the multiple hotspot codes, the hotspot code of the first part, the hotspot code of the second part, and the hotspot code of the third part are obtained, wherein the hotspot code of the first part includes For implementing the hotspot code of the activation function, the hotspot code of the first part includes the hotspot code for implementing the activation function, and the number of hotspot codes in the hotspot code of the second part is more than the hotspots of the hotspot code of the third part The number of codes, and the size of the hotspot code of the second part is greater than the size of the hotspot code of the third part; the configuration is generated according to the hotspot code of the first part, the hotspot code of the second part, and the hotspot code
  • the server generates configuration files according to the hotspot code of the first part, the hotspot code of the second part, and the hotspot code of the third part respectively, and three configuration files can be obtained, and one of the configuration files includes the hotspot code of the first part.
  • Hotspot code a configuration file includes the hotspot code of the second part
  • a configuration file includes the hotspot code of the third part.
  • the startup code Since the startup code is used to realize the startup function, its size is usually smaller than the hotspot code for other functions, so the second The size of part of the hotspot code and the size of the third part of the hotspot code can be greater than the size of the first part of the hotspot code, and the size of the second part of the hotspot code is greater than the size of the third part of the hotspot code, so that the generated three configuration files
  • the sizes are different, that is to say, the size of the configuration file corresponding to the hotspot code in the second part, the size of the configuration file corresponding to the hotspot code in the third part, and the size of the configuration file corresponding to the hotspot code in the first part are successively decreasing .
  • the functions that can be implemented by the hot codes in the second part of the hot codes are redundant with the third part of the hot codes
  • the function implemented by the hot spot code In this way, when pushing, not only configuration files of different sizes can be selected according to the heat, but also configuration files corresponding to hotspot codes with different numbers of functions implemented can be pushed.
  • the hotspot code of the second part and the hotspot code of the third part may not include the hotspot code of the first part, and the hotspot code of the second part may include the hotspot code of the third part.
  • the hotspot code in the second part can be used to implement most of the functions of the target application (except the startup function), and the hotspot code in the third part can be used to implement the basic functions of the target application. In this way, by generating multiple configuration files of different sizes according to the function of the hotspot code, the server can push configuration files of different sizes according to the popularity of the target application when determining the target configuration file.
  • Step S330 When receiving the acquisition request sent by the terminal device, acquire the popularity of the target application, and the acquisition request is used to acquire the hotspot code of the target application.
  • step S330 can refer to the content of the foregoing embodiment, and will not be repeated here.
  • Step S340 According to the popularity, determine at least one of the multiple configuration files corresponding to the target application as a target configuration file.
  • the multiple configuration files are generated in advance according to the hotspot code of the target application.
  • the size of each configuration file in multiple configuration files is different.
  • the number of functions implemented by the hot code of different configuration files is also different, so that when the server pushes configuration files of different sizes, the number of functions implemented by the hot code in the pushed configuration files can also be as large as the size.
  • the larger the size of the configuration file the greater the number of functions implemented by the hot code in the configuration file.
  • the server when the server determines at least one of the multiple configuration files corresponding to the target application according to the popularity of the target application, if the multiple configuration files of the target application are hotspots according to the first part of the above implementation When the code, the hotspot code of the second part, and the hotspot code of the third part are generated, the server can select one or at least two configuration files from the three configuration files as the target configuration file.
  • this implementation manner can be combined with the implementation manner of the previous embodiment, where the implementation manner in the previous embodiment is: the heat degree range to which the heat degree belongs is in the fourth heat degree range, and the target profile is the fourth configuration File and the fifth profile; the heat range to which the heat belongs is in the fifth heat range, and the target profile is the fourth and sixth profile; the heat range to which the heat belongs is in the sixth heat range, and the target profile is the fourth configuration file.
  • the fourth configuration file can be a configuration file corresponding to the hotspot code in the first part above
  • the fifth configuration file can be a configuration file corresponding to the hotspot code in the second part above
  • the sixth configuration file can be a configuration file corresponding to the hotspot code in the third part above. Configuration file.
  • the server when the download volume of the application is in the top 50 (that is, the heat range is the first heat range), the server can push the configuration file corresponding to the startup code and the configuration file corresponding to the hot code of most functions; the download volume of the application is in the When the ranking is 51-100 (that is, the hot range is the second hot range), the server can push the configuration file corresponding to the startup code and the configuration file corresponding to the hot code of most functions; when the download volume of the application is in the ranking above 100 (ie The heat range is the third heat range), the server can push the configuration file corresponding to the startup code and the configuration file corresponding to the hot code of the basic function.
  • Step S350 Send the target configuration file to the terminal device, where the target configuration file is used to instruct the terminal device to precompile the hotspot code in the target configuration file.
  • step S350 can refer to the content of the foregoing embodiment, which will not be repeated here.
  • the configuration file processing method provided by the embodiment of the present application generates multiple configuration files according to the functions in the target application hotspot code by obtaining the hotspot code of the target application, and the functions and sizes of the hotspot codes in different configuration files are different. Therefore, the server can push configuration files of different sizes to the terminal device according to the popularity of the target application, and the number of functions implemented by the hot code in the pushed configuration file can also correspond to the size, that is, the larger the size of the configuration file, The more functions implemented by the hot code in the configuration file can meet the needs of users and improve the user experience.
  • FIG. 6 shows a schematic flowchart of a configuration file processing method provided by still another embodiment of the present application.
  • This configuration file processing method is applied to the terminal device in the above-mentioned configuration file processing system.
  • the process shown in FIG. 6 will be described in detail below.
  • the configuration file processing method may specifically include the following steps:
  • Step S410 Send an acquisition request to the server, where the acquisition request is used to acquire the hotspot code of the target application.
  • Step S420 Receive a target configuration file issued by the server.
  • the target configuration file is determined by the server from a plurality of configuration files corresponding to the target application according to the popularity of the target application.
  • the file is generated in advance according to the hotspot code of the target application, and the size of each configuration file in the multiple configuration files is different.
  • step S410 and step S420 correspond to the content of the interaction between the server and the terminal device in the foregoing embodiment, and will not be repeated here.
  • Step S430 Pre-compile the hot code in the target configuration file, and store the compiled file obtained after the pre-compilation.
  • the target configuration file after receiving the target configuration file pushed by the server, the target configuration file includes hotspot codes of a corresponding size, and the terminal device can precompile the hotspot codes therein, and compile the compiled files obtained by precompilation. Store it.
  • the files in the compiled file are binary machine codes. Therefore, when the terminal device runs the hotspot code in the target configuration file, it can directly execute the binary machine code in the compiled file to improve the efficiency of running the target application.
  • the size of the target configuration file obtained by the terminal device corresponds to the popularity, which also avoids pushing the configuration files corresponding to all the hot codes of the target application, which leads to the avoidance of pushing the configuration file to be larger, but the popularity of the application When it is small, the terminal device will waste the storage space of the terminal device after storing the compiled file after all the hotspot codes in the configuration file are compiled.
  • FIG. 7 shows a schematic flowchart of a configuration file processing method provided by yet another embodiment of the present application.
  • This configuration file processing method is applied to the terminal device in the above-mentioned configuration file processing system.
  • the process shown in FIG. 7 will be described in detail below.
  • the configuration file processing method may specifically include the following steps:
  • Step S510 Send an acquisition request to the server, where the acquisition request is used to acquire the hotspot code of the target application.
  • Step S520 Receive a target configuration file issued by the server.
  • the target configuration file is determined by the server from a plurality of configuration files corresponding to the target application according to the popularity of the target application.
  • the file is generated in advance according to the hotspot code of the target application, and the size of each configuration file in the multiple configuration files is different.
  • step S510 and step S520 can refer to the content of the foregoing embodiment, and will not be repeated here.
  • Step S530 When the target configuration file includes at least two configuration files, precompile the hotspot codes in the at least two configuration files in stages, and store the compiled file obtained after the precompilation.
  • the target configuration file pushed by the server to the terminal device may include at least two configuration files. Therefore, when the target configuration file includes at least two configuration files, the compilation time may be longer. Compiling during application will lead to a longer installation time. By compiling in stages, the installation time can be avoided. If the terminal device is in a compiling state (idle state and charging state), compile it. One-time compilation of hot codes in at least two configuration files may cause the compilation time to be too long. When the compilation is not completed, the terminal device is in a state where the compilation is not satisfied, and the compilation fails. The next time you wait until it is satisfied When the state is ready for compilation, the hot code in at least two configuration files is recompiled, and the problem can be solved well by compiling in stages.
  • the obtaining request is also used to obtain the installation package of the target application.
  • the server may also send the installation package to the terminal device.
  • the terminal device may also receive the installation package of the target application sent by the server.
  • the target configuration file includes at least two configuration files
  • the hot code of one of the configuration files can be compiled when the target application is installed according to the installation package, and the hot code of the other configuration files will be installed on the terminal after the installation is complete. Compile again when the device is in a state where it can be compiled.
  • the target configuration file includes a first target configuration file and a second target configuration file.
  • the hotspot code in the first target configuration file includes startup code, and the size of the second target configuration file is greater than the size of the first target configuration file.
  • the terminal device precompiles the hotspot code in at least two configuration files in stages , May include: while installing the target application according to the installation package, precompiling the startup code in the first target configuration file; after the target application is installed, precompiling the hot code in the second target configuration file Compile.
  • the hotspot code in the second target configuration file is pre-compiled.
  • the designated state can refer to the state in which the terminal device can pre-compile the hotspot code, and the designated state can be the state in which the terminal device is idle and charged.
  • the specified state can be satisfied after the screen is turned off for a certain period of time.
  • Step S540 When the target configuration file includes a configuration file, perform a one-time pre-compilation of the hotspot code in the target configuration file, and store the compiled file obtained after the pre-compilation.
  • the terminal device when the target configuration file pushed by the server includes only one configuration file, the terminal device can precompile the hotspot code in the configuration file at one time. For example, if the terminal device obtains the target configuration file when downloading the target application, the startup code in the configuration file can be pre-compiled when the target application is installed, and the compiled file generated by the compilation can be stored.
  • the configuration file processing method provided by the embodiment of the present application sends a request for obtaining hotspot codes to the server, and then receives the target configuration file returned by the server.
  • the target configuration file includes at least two configuration files
  • the at least two configuration files can be processed.
  • the hot code in the configuration file is pre-compiled in stages, which can effectively avoid the problem of long installation time or the problem of multiple compilations caused by compilation failure.
  • FIG. 8 shows a structural block diagram of a configuration file processing apparatus 400 provided by an embodiment of the present application.
  • the configuration file processing device 400 applies the above-mentioned configuration file processing server.
  • the configuration file processing device 400 includes: a request receiving module 410, a file obtaining module 420, and a file sending module 430.
  • the request receiving module 410 is used for obtaining the popularity of the target application when receiving the obtaining request sent by the terminal device, the obtaining request is used for obtaining the hotspot code of the target application;
  • the file obtaining module 420 is used for According to the popularity, at least one of the multiple configuration files corresponding to the target application is determined as a target configuration file.
  • the multiple configuration files are generated in advance according to the hotspot code of the target application.
  • the size of each configuration file in the file is different; the file sending module 430 is used to send the target configuration file to the terminal device, and the target configuration file is used to instruct the terminal device to check the target configuration file.
  • the hotspot code
  • the at least two configuration files are used to instruct the terminal device to stage the hotspot codes in the at least two configuration files
  • the target configuration file is used to instruct the terminal device to perform a one-time pre-compilation of the hotspot code in the target configuration file.
  • the file obtaining module 420 may include: a first obtaining unit, configured to obtain the first configuration file and the first configuration file from the plurality of configuration files when the popularity range to which the popularity belongs is the first popularity range.
  • the second configuration file is used as the target configuration file; the second obtaining unit is configured to obtain the third configuration file and the first configuration file from the plurality of configuration files when the popularity range to which the popularity belongs is the second popularity range.
  • a configuration file, as the target configuration file, the size of the third configuration file is smaller than the size of the second configuration file, and the minimum heat in the first heat range is greater than the maximum heat in the second heat range .
  • the file obtaining module 420 may further include a third obtaining unit, configured to obtain the first configuration file from the plurality of configuration files when the popularity range to which the popularity belongs is the third popularity range. , As the target profile, wherein the minimum heat in the second heat range is greater than the maximum heat in the third heat range.
  • the acquisition request is also used to acquire the installation package of the target application
  • the hotspot code in the first configuration file includes at least a startup code
  • the size of the second configuration file is larger than that of the first configuration file the size of.
  • the file sending module 430 may also be used to send the installation package of the target application to the terminal device.
  • the first configuration file is used to instruct the terminal device to precompile the startup code in the first configuration file while installing the target application according to the installation package;
  • the second configuration file and the third configuration file are used to instruct the terminal device to precompile the hotspot code in the second configuration file or the third configuration file after the installation of the target application is completed.
  • the device 400 for processing the configuration file may further include: a code acquisition module and a file generation module.
  • the code acquisition module is used to obtain the hotspot code of the target application;
  • the file generation module is used to generate multiple configuration files according to the function of the hotspot code in the hotspot code, and the number of functions implemented by the hotspot code in each configuration file is different, And the size of the hotspot code in each configuration file is different.
  • the code acquisition module may include: a code separation unit for separating a plurality of hot codes from the hot codes according to the functions of the hot codes in the hot codes, each of which has a different function; a code determining unit , Used for and the third part of the hotspot code, wherein the first part of the hotspot code includes a hotspot code for realizing the startup function, the first part of the hotspot code includes a hotspot code for realizing the startup function, and the first The number of hot codes in the second part of the hot code is more than the number of hot codes in the third part of the hot code, and the size of the second part of the hot code is greater than the size of the third part of the hot code; generating an execution unit, It is used to generate a configuration file according to the hotspot code of the first part, the hotspot code of the second part, and the hotspot code of the third part respectively.
  • FIG. 9 shows a structural block diagram of a configuration file processing apparatus 500 provided by another embodiment of the present application.
  • the processing device 500 of the configuration file applies the terminal device in the processing of the above-mentioned configuration file.
  • the configuration file processing device 500 includes: a request sending module 510, a file receiving module 520, and a code compiling module 530.
  • the request sending module 510 is used to send an acquisition request to the server, and the acquisition request is used to acquire the hotspot code of the target application;
  • the file receiving module 520 is used to receive the target configuration file issued by the server.
  • the target configuration file is determined by the server from a plurality of configuration files corresponding to the target application according to the popularity of the target application, and the plurality of configuration files are generated in advance according to the hotspot code of the target application.
  • Each configuration file in the configuration file has a different size; the code compilation module 530 is used to precompile the hot code in the target configuration file, and store the compiled file obtained after the precompilation.
  • the code compiling module 530 may include: a first compiling unit, configured to perform, when the target configuration file includes at least two configuration files, the hot code in the at least two configuration files in stages. Pre-compilation; a second compiling unit, configured to perform a one-time pre-compilation of the hotspot code in the target configuration file when the target configuration file includes a configuration file.
  • the acquisition request is also used to acquire an installation package of the target application
  • the target configuration file includes a first target configuration file and a second target configuration file
  • the code includes a startup code
  • the size of the second target configuration file is greater than the size of the first target configuration file.
  • the configuration file processing apparatus 500 may further include: an installation package receiving module, configured to receive the installation package of the target application sent by the server.
  • the code compiling module 430 may include: a third compiling unit, configured to precompile the startup code in the first target configuration file while installing the target application according to the installation package; and a fourth compiling unit , Used to pre-compile the hotspot code in the second target configuration file after the target application is installed.
  • the fourth compiling unit may be specifically configured to: after the target application is installed, when the terminal device satisfies a specified state, precompile the hotspot code in the second target configuration file.
  • the coupling between the modules may be electrical, mechanical or other forms of coupling.
  • the functional modules in the various embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules.
  • the embodiment of the present application also provides a configuration file processing system.
  • the configuration file processing system includes a terminal device and a server.
  • the server is in communication connection with the terminal device.
  • the terminal device is used to send an acquisition request to the server, the acquisition request is used to acquire the hotspot code of the target application;
  • the server is used to receive the acquisition request, and when the acquisition request sent by the terminal device is received, the acquisition request is
  • the popularity of the target application at least one of the multiple configuration files corresponding to the target application is determined according to the popularity, as the target configuration file, and the multiple configuration files are the hot spots of the target application in advance Code generation, each of the multiple configuration files has a different size;
  • the server is also used to send the target configuration file to the terminal device;
  • the terminal device is also used to receive the target configuration file , Precompiling the hotspot code in the target configuration file, and storing the compiled file obtained after the precompilation.
  • the server obtains the popularity of the target application when receiving the acquisition request sent by the terminal device.
  • the acquisition request is used to obtain the hot code of the target application, and then determines the target application based on the popularity
  • At least one configuration file of the corresponding multiple configuration files is used as the target configuration file.
  • the multiple configuration files are generated in advance according to the hot code of the target application, and the size of each configuration file in the multiple configuration files is different.
  • Sent to the terminal device the target configuration file is used to instruct the terminal device to precompile the hotspot code in the target configuration file.
  • the size of the pushed configuration file is determined by the popularity of the application, which avoids that the pushed configuration file is large, and the popularity of the application is small, resulting in waste of storage space of the terminal device .
  • FIG. 10 shows a structural block diagram of a terminal device provided by an embodiment of the present application.
  • the terminal device 100 may be an electronic device capable of running application programs, such as a smart phone, a tablet computer, or a smart watch.
  • the terminal device 100 in this application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, where one or more application programs may be stored in the memory 120 and configured to be configured by One or more processors 110 execute, and one or more programs are configured to execute the methods described in the foregoing method embodiments.
  • the processor 110 may include one or more processing cores.
  • the processor 110 uses various interfaces and lines to connect various parts of the entire terminal device 100, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and calling data stored in the memory 120.
  • Various functions and processing data of the terminal device 100 may use at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 110 may be integrated with one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a modem, and the like.
  • the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing of display content; the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented by a communication chip alone.
  • the memory 120 may include random access memory (RAM) or read-only memory (Read-Only Memory).
  • the memory 120 may be used to store instructions, programs, codes, code sets or instruction sets.
  • the memory 120 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.) , Instructions used to implement the following various method embodiments, etc.
  • the data storage area can also store data (such as phone book, audio and video data, chat record data) created by the terminal 100 during use.
  • FIG. 11 shows a structural block diagram of a server provided by an embodiment of the present application.
  • the server 600 may be a traditional server, a cloud server, or the like.
  • the server 600 in this application may include one or more of the following components: a processor 610, a memory 620, and one or more application programs, where one or more application programs may be stored in the memory 620 and configured to be operated by one Or multiple processors 610 execute, and one or more programs are configured to execute the method described in the foregoing method embodiment.
  • the processor 610 may include one or more processing cores.
  • the processor 610 uses various interfaces and lines to connect various parts of the entire server 600, and executes the server by running or executing instructions, programs, code sets, or instruction sets stored in the memory 620, and calling data stored in the memory 620. 600's various functions and processing data.
  • the processor 610 may adopt at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 610 may be integrated with one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a modem, and the like.
  • the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing of display content; the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 610, but may be implemented by a communication chip alone.
  • the memory 620 may include random access memory (RAM) or read-only memory (Read-Only Memory).
  • the memory 620 may be used to store instructions, programs, codes, code sets, or instruction sets.
  • the memory 620 may include a storage program area and a storage data area, where the storage program area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.) , Instructions used to implement the following various method embodiments, etc.
  • the data storage area can also store data created by the server 600 in use, and the like.
  • FIG. 12 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer-readable medium 800 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
  • the computer-readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 800 has storage space for the program code 810 for executing any method steps in the above-mentioned methods. These program codes can be read from or written into one or more computer program products.
  • the program code 810 may be compressed in a suitable form, for example.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

一种配置文件的处理方法、装置、系统及存储介质,该配置文件的处理方法应用于服务器,该配置文件的处理方法包括:在接收到终端设备发送的获取请求时,获取目标应用的热度,所述获取请求用于获取所述目标应用的热点代码(S110);根据所述热度,确定所述目标应用对应的多个配置文件中的至少一个配置文件,作为目标配置文件,所述多个配置文件预先根据所述目标应用的热点代码生成,所述多个配置文件中每个配置文件的大小不同(S120);将所述目标配置文件发送至所述终端设备,所述目标配置文件用于指示所述终端设备对所述目标配置文件中的热点代码进行预编译(S130)。该方法可以避免终端设备的存储空间的浪费。

Description

配置文件的处理方法、装置、系统及存储介质
相关申请的交叉引用
本申请要求于2019年12月18日提交的申请号为201911312519.2的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。
技术领域
本申请涉及计算机技术领域,更具体地,涉及一种配置文件的处理方法、装置、系统及存储介质。
背景技术
在终端设备的应用程序的使用中,通常将应用程序的使用频繁的方法或代码作为热点代码,并预先对热点代码编译为二进制机器码,编译得到的二进制机器码可以用于在下次运行应用程序时直接由处理器执行,从而提升应用程序的运行速度。一些厂商通过对应用的热点代码进行搜集,并推送给用户的终端设备,对于终端设备而言,会对应用程序的热点代码全部进行编译。但是对于用户不常用的应用,将热点代码全部进行编译,编译后的文件会造成存储空间的浪费。
发明内容
鉴于上述问题,本申请提出了一种配置文件的处理方法、装置、系统及存储介质。
第一方面,本申请实施例提供了一种配置文件的处理方法,应用于服务器,所述方法包括:在接收到终端设备发送的获取请求时,获取目标应用的热度,所述获取请求用于获取所述目标应用的热点代码;根据所述热度,确定所述目标应用对应的多个配置文件中的至少一个配置文件,作为目标配置文件,所述多个配置文件预先根据所述目标应用的热点代码生成,所述多个配置文件中每个配置文件的大小不同;将所述目标配置文件发送至所述终端设备,所述目标配置文件用于指示所述终端设备对所述目标配置文件中的热点代码进行预编译。
第二方面,本申请实施例提供了一种配置文件的处理方法,应用于终端设备,所述方法包括:发送获取请求至服务器,所述获取请求用于获取目标应用的热点代码;接收所述服务器下发的目标配置文件,所述目标配置文件由所述服务器根据所述目标应用的热度,从所述目标应用对应的多个配置文件中确定,所述多个配置文件预先根据所述目标应用的热点代码生成,所述多个配置文件中每个配置文件的大小不同;对所述目标配置文件中的热点代码进行预编译,并将预编译后得到的编译文件进行存储。
第三方面,本申请实施例提供了一种配置文件的处理装置,应用于服务器,所述装置包括:请求接收模块、文件获取模块以及文件发送模块,其中,所述请求接收模块用于在接收到终端设备发送的获取请求时,获取目标应用的热度,所述获取请求用于获取所述目标应用的热点代码;所述文件获取模块用于根据所述热度,确定所述目标应用对应的多个配置文件中的至少一个配置文件,作为目标配置文件,所述多个配置文件预先根据所述目标应用的热点代码生成,所述多个配置文件中每个配置文件的大小不同;所述文件发送模块用于将所述目标配置文件发送至所述终端设备,所述目标配置文件用于指示所述终端设备对所述目标配置文件中的热点代码进行预编译。
第四方面,本申请实施例提供了一种配置文件的处理装置,应用于终端设备,所述装置包括:请求发送模块、文件接收模块以及代码编译模块,其中,所述请求发送模块用于发送获取请求至服务器,所述获取请求用于获取目标应用的热点代码;所述文件接收模块用于接收所述服务器下发的目标配置文件,所述目标配置文件由所述服务器根据所述目标应用的热度,从所述目标应用对应的多个配置文件中确定,所述多个配置文件预先根据所述目标应用的热点代码生成,所述多个配置文件中每个配置文件的大小不同;所述代码编译模块用于对所述目标配置文件中的热点代码进行预编译,并将预编译后得到的编译文件进行存储。
第五方面,本申请实施例提供了一种配置文件的处理系统,所述系统包括服务器以及终端设备,所述服务器与所述终端设备通信连接,其中,所述终端设备用于发送获取请求至服务器,所 述获取请求用于获取目标应用的热点代码;所述服务器用于接收所述获取请求,在接收到终端设备发送的获取请求时,获取所述目标应用的热度,根据所述热度,确定所述目标应用对应的多个配置文件中的至少一个配置文件,作为目标配置文件,所述多个配置文件为预先根据所述目标应用的热点代码生成,所述多个配置文件中每个配置文件的大小不同;所述服务器还用于将所述目标配置文件发送至所述终端设备;所述终端设备还用于接收所述目标配置文件,对所述目标配置文件中的热点代码进行预编译,并将预编译后得到的编译文件进行存储。
第六方面,本申请实施例提供了一种服务器,包括:一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述第一方面提供的配置文件的处理方法。
第七方面,本申请实施例提供了一种终端设备,包括:一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述第二方面提供的配置文件的处理方法。
第八方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述第一方面提供的配置文件的处理方法、或者执行上述第二方面提供的配置文件的处理方法。
本申请提供的方案,服务器通过在接收到终端设备发送的获取请求时,获取目标应用的热度,该获取请求用于获取目标应用的热点代码,然后根据该热度,确定目标应用对应的多个配置文件中的至少一个配置文件,作为目标配置文件,该多个配置文件预先根据目标应用的热点代码生成,且多个配置文件中每个配置文件的大小不同,将目标配置文件发送至终端设备,目标配置文件用于指示该终端设备对目标配置文件中的热点代码进行预编译。从而可以实现服务器在向终端设备推送应用的配置文件时,推送的配置文件的大小由应用的热度确定,避免推送的配置文件较大,而应用的热度较小,导致终端设备的存储空间的浪费。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了根据本申请实施例提供的应用场景的一种示意图。
图2示出了根据本申请实施例提供的应用场景的另一种示意图。
图3示出了根据本申请一个实施例的配置文件的处理方法流程图。
图4示出了根据本申请另一个实施例的配置文件的处理方法流程图。
图5示出了根据本申请又一个实施例的配置文件的处理方法流程图。
图6示出了根据本申请再一个实施例的配置文件的处理方法流程图。
图7示出了根据本申请又另一个实施例的配置文件的处理方法流程图。
图8示出了根据本申请一个实施例的配置文件的处理装置的一种框图。
图9示出了根据本申请另一个实施例的配置文件的处理装置的一种框图。
图10是本申请实施例的用于执行根据本申请实施例的配置文件的处理方法的终端设备的框图。
图11是本申请实施例的用于执行根据本申请实施例的配置文件的处理方法的服务器的框图。
图12是本申请实施例的用于保存或者携带实现根据本申请实施例的配置文件的处理方法的程序代码的存储单元。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
安卓(Android)有两种虚拟机执行环境:Dalvik虚拟机和Art虚拟机。在Dalvik虚拟机的执行环境下,应用每次运行的时候,字节码都需要通过即时编译器(Just In Time compilation,JIT编译器)转换为机器码,才能被设备运行,这样会拖慢应用的执行效率。在Android 4.4版本时,Art虚拟机开始替代Dalvik虚拟机,在最开始的Art虚拟机中,应用在第一次安装的时候,系统会通过一个名称为dex2oat的工具将APK中的dex文件编译成包含本地机器码的oat文件存放下来。这样做之后,在程序执行的时候,就可以直接使用已经编译好的机器码以加快效率,这种预先编译机器码的机制叫做运行前编译(Ahead Of Time,AOT)。AOT的缺点是应用安装和系统升级之后 的应用优化过程比较耗时(需要重新将dex字节码编译成本地机器码),且优化后的文件会占用额外的存储空间。
因此,后来对其做了相应的调整,在Art虚拟机的环境上,由原来的AOT变为解释器(Interpreter)+JIT+AOT混合编译。JAVA程序最初仅仅通过JAVA解释器(Interpreter)解释执行,即对字节码逐条解释执行,这种方式的执行速度相对会比较慢,尤其当某个方法或代码块运行特别频繁时,这种方式的执行效率就显得很低。于是后来在虚拟机中引入了JIT编译器,当虚拟机发现某个方法或者代码块运行特别频繁时,就会把这些代码认定为“hot spot code”(热点代码),将之记录下来保存到profile文件(配置文件),为了提高热点代码的执行效率,在运行时,虚拟机将会把这些代码编译成与本地平台相关的机器码,而正是由JIT编译器负责这项任务。简单而言,profile文件记录了应用频繁运行的方法或者代码块,经由JIT或者AOT编译后得到.odex/.oat文件,该文件存有这些热点代码编译而成的二进制机器码,可直接交由中央处理器(Central Processing Unit,CPU)执行,从而提高了运行速度。
在JIT架构中,oat文件由于包含的时程序运行的机器码,因此可以直接被Art虚拟机运行。而dex文件中,如果是cold code(非热点代码),则交由JAVA解释器执行,如果是hot code(热点代码)则交由JIT实时编译后存放在JIT CODE CACHE中,下次再次访问该热点,则可以直接从cache中执行对应的机器码。
通常大部分厂商均采用上述的Interpreter+JIT+AOT混合编译模式,在该混合编译模式下,应用在安装的时候dex文件不会被编译,应用在运行时,dex文件先通过Interpreter被直接运行,经常运行的函数或者代码块会被识别为hot code,hot code被JIT编译后存储在JIT CODE CACHE中,生成profile文件以记录热点函数的信息,移动终端在进入IDLE(空闲)且Charging(充电)状态的时候,系统会扫描应用的目录下的profile文件并执行AOT过程进行编译,AOT编译后的二进制机器码可直接交由中央处理器(Central Processing Unit,CPU)执行,从而提高了运行速度。这种方式下,需要移动终端自行对热点代码进行搜集,热点代码的编译依赖于设备在空闲维护模式下才会被触发,因此需要在使用应用一段时间后才能享受到性能的提升。
当然,一些厂商从用户的移动终端收集应用的配置文件,上传到云端。用户可以使用移动终端从云端下载配置文件,移动终端在接收到配置文件后会对配置文件中的热点代码进行编译,编译后的编译文件(二进制机器码)可以进行存储,以便运行应用程序的热点代码时,能直接执行二进制机器代码,使得移动终端能直接根据下载的配置文件进行编译,从而移动终端不必经过较长时间搜集热点代码和对热点代码进行编译,可以立即享受到应用运行时的性能提升。
发明人经过长期的研究发现,对于终端设备而言,会对从服务器获取的热点代码全部进行编译,并将编译后的编译文件进行存储。对于众多的应用,可能一些应用对于用户而言并不常用,但是对于用户不常用的应用,如果将热点代码全部进行编译,编译后的文件会造成存储空间的浪费。
针对上述问题,发明人提出了本申请实施例提供的配置文件的处理方法、装置、系统及存储介质,通过服务器在向终端设备推送应用的配置文件时,推送的配置文件的大小由应用的热度确定,避免推送的配置文件较大,而应用的热度较小,导致终端设备的存储空间的浪费。其中,具体的配置文件的处理方法在后续的实施例中进行详细的说明。
下面对本申请实施例提供的应用场景进行介绍。
在一些实施方式中,请参阅图1,图1示出了本申请实施例提供的应用场景的一种示意图,该应用场景包括配置文件的处理系统10,该配置文件的处理系统10包括:终端设备100以及第一服务器200。其中,终端设备100与第一服务器200通过网络进行通信。终端设备100可以与第一服务器200进行数据交互,以从第一服务器200获取应用程序的配置文件等文件数据。
在另一些实施方式中,请参阅图2,图2示出了本申请实施例提供的应用场景的另一种示意图,配置文件的处理系统10也可以包括:终端设备100、第一服务器200以及第二服务器300。其中,终端设备100与第一服务器200之间进行数据交互,第一服务器200与第二服务器300之间也可以进行数据交互。第一服务器200可以用于处理终端设备100的请求,第二服务器300可以用于存储和管理应用程序的配置文件、安装包等文件数据,当终端设备100从第一服务器200获取应用程序的文件时,第一服务器200可以从第二服务器300获取应用程序的文件,并将应用程序的文件发送至终端设备100。
当然,配置文件的处理系统10中也还可以包括其他的服务器。例如,配置文件的处理系统10还可以包括第三服务器,第三服务器可以用于从用户的终端设备收集应用程序的配置文件,并将收集的配置文件传输至第二服务器200进行整理和存储等;又例如,配置文件的处理系统10也还 可以包括第四服务器,第四服务器可以用于存储和管理应用程序的安装包等,该情况下,可以由第二服务器200存储和管理应用程序的配置文件,实现应用程序的安装包与配置文件的单独进行管理和存储。
在一些实施方式中,上述的终端设备100可以为智能手机、平板电脑、电子书、智能手表等设备;第一服务器200、第二服务器300等服务器可以为传统服务器,也可以为云服务器,在此不做限定。
下面对本申请实施例提供的配置文件的处理方法进行详细介绍。
请参阅图3,图3示出了本申请一个实施例提供的配置文件的处理方法的流程示意图。该配置文件的处理方法可以应用于上述配置文件的处理系统中的服务器。下面将以终端设备为例,说明本实施例的具体流程。下面将针对图3所示的流程进行详细的阐述,所述配置文件的处理方法具体可以包括以下步骤:
步骤S110:在接收到终端设备发送的获取请求时,获取目标应用的热度,所述获取请求用于获取所述目标应用的热点代码。
在本申请实施例中,获取请求可以由终端设备生成,该获取请求用于从服务器获取目标应用的文件数据。在一些方式中,获取请求可以至少用于获取目标应用的热点代码。其中,该应用可以是终端设备未安装过的应用,也可以为终端设备已安装而未对热点代码进行过编译的应用,在此不做限定。
在一些实施方式中,终端设备可以根据用户的用户操作,生成上述获取请求,再发送至服务器,从而服务器接收到获取请求,例如,终端设备检测到在软件商店的界面中对目标应用的热点代码的获取操作,进而生成获取该目标应用的热点代码的获取请求。
在另一些实施方式中,也可以是在目标应用安装完成后,未被使用之前,终端设备主动生成用于获取该目标应用的热点代码的获取请求后,再发送至服务器,从而服务器接收到获取请求。
当然,在一些实施方式中,也可以是终端设备在下载应用时生成同时用于获取安装包和热点代码的获取请求,并发送至服务器,从而服务器接收到获取请求。
在本申请实施例中,服务器在接收到终端设备的以上获取请求时,可以获取目标应用的热度。其中,热度可以用于表征应用的下载量的高低,下载量越大,则热度越高,下载量越低,则表示热度越低。热度的表现形式可以为从高到底的排名中的名次,也可以是下载次数等,在此不做限定。
在一些实施方式中,服务器可以根据目标应用在应用商店中的热度数据,确定目标应用的热度。当该服务器为应用商店的服务器时,则可以直接从本地获取目标应用的热度数据;当该服务器不为应用商店的服务器时,则可以从应用商店的服务器,获取该目标应用的热度数据。
在另一些实施方式中,服务器也可以从统计应用的热度的服务平台,获取目标应用的热度数据,并确定出目标应用的热度。
当然,服务器获取目标应用的热度的具体方式可以不作为限定。
步骤S120:根据所述热度,确定所述目标应用对应的多个配置文件中的至少一个配置文件,作为目标配置文件,所述多个配置文件预先根据所述目标应用的热点代码生成,所述多个配置文件中每个配置文件的大小不同。
在本申请实施例中,服务器在获取到目标应用的热度之后,则可以根据目标应用的热度,确定需要推送至终端设备的配置文件。其中,服务器可以从目标应用对应的多个配置文件中,确定需推送的配置文件。
在一些实施方式中,目标应用对应的多个配置文件预先根据目标应用的热点代码生成,每个配置文件中均包括目标应用的热点代码,也就是上述的记录应用的热点代码的profile文件。并且多个配置文件中每个配置文件的大小不同,也就是配置文件中热点代码的大小是不同的。
作为一种实施方式,可以根据目标应用对应的所有热点代码,按照设定的规则,对所有热点代码划分成多个部分,并且每个部分的热点代码的大小不同,然后根据每个部分的热点代码,生成一个配置文件,从而获得多个不同大小的配置文件。
作为另一种实施方式,可以根据目标应用对应的所有热点代码,按照热点代码实现的功能的不同,分成多个热点代码,然后将根据热点代码的大小,根据一个或多个热点代码的组合,生成不同的配置文件,且每个配置文件中的热点代码的大小不同。当然,具体多个配置文件形成的方式可以不作为限定。
在一些实施方式中,服务器根据目标应用的热度,从目标应用的多个配置文件中,获取至少一个配置文件作为目标配置文件,可以是服务器根据目标应用的热度,按照配置文件的大小,选 取与该热度对应的目标大小的配置文件。其中,与该热度对应的目标大小的配置文件可以为一个配置文件,也可以为多个配置文件的组合,也就是说,可以是选取一个大小为目标大小的配置文件,也可以是选取大小总和为目标大小的多个配置文件,在此不做限定。从而可以使目标配置文件的大小能与热度相对应。
作为一种实施方式,热度与目标大小的对应关系,可以是目标大小与热度成正比的关系,也就是说,热度越大,则目标配置文件的大小越大。作为另一种实施方式,也可以是处于同一区间的热度,对应同样的目标大小,即可以获取同样大小的配置文件,并且热度大的区间,对应的目标大小也越大,通过热度的区间而区分需要推送的目标配置文件的大小,也可以使应用的热度小于一定值时,推送的目标配置文件的大小也相应减少,避免存储空间的浪费。当然,具体根据热度获取至少一个配置文件的规则可以不作为限定,例如,也还可以是当热度小于第一阈值,则选取第一大小的一个或多个配置文件,作为目标配置文件,当热度小于第二阈值,则选取第二大小的一个或多个配置文件,且第一大小大于第二大小,第一阈值大于第二阈值,这样也可以使目标配置文件的大小与应用的热度相对应,且保证热度小于一定值时,推送的目标配置文件的大小相应减少,避免存储空间的浪费。
在一些实施方式中,目标应用的多个配置文件存储于服务器中,服务器可以直接根据热度,从多个配置文件中获取至少一个配置文件,作为目标配置文件。在另一些实施方式中,目标应用的多个配置文件存储于其他服务器中,接收到获取请求的服务器中可以存储有每个配置文件的标识,可以根据热度对应的至少一个配置文件的标识,从其他服务器获取热度对应的至少一个配置文件,作为目标配置文件。
步骤S130:将所述目标配置文件发送至所述终端设备,所述目标配置文件用于指示所述终端设备对所述目标配置文件中的热点代码进行预编译。
在本申请实施例中,接收到获取请求的服务器在获取到目标配置文件后,则可以将目标配置文件发送至推送至上述终端设备,以便发送获取请求的终端设备能够获取到目标配置文件。服务器发送至终端设备的目标配置文件,目标配置文件中包括有相应大小的热点代码,目标配置文件可以指示终端设备对其中的热点代码进行预编译,并将预编译得到的编译文件进行存储。编译文件中的文件为二进制的机器代码,因此当终端设备运行目标配置文件中的热点代码时,可以直接执行编译文件中的二进制的机器代码,提升运行目标应用的效率。另外,推送至终端设备的目标配置文件的大小是与热度相对应的,这样也避免了将目标应用的全部热点代码对应的配置文件进行推送,而导致避免推送的配置文件较大,但应用的热度较小时,所造成的终端设备的存储空间的浪费。
本申请实施例提供的配置文件的处理方法,服务器通过在接收到终端设备发送的获取请求时,获取目标应用的热度,该获取请求用于获取目标应用的热点代码,然后根据该热度,确定目标应用对应的多个配置文件中的至少一个配置文件,作为目标配置文件,该多个配置文件预先根据目标应用的热点代码生成,且多个配置文件中每个配置文件的大小不同,将目标配置文件发送至终端设备,目标配置文件用于指示该终端设备对目标配置文件中的热点代码进行预编译。推送至终端设备的目标配置文件的大小是与热度相对应的,这样也避免了将目标应用的全部热点代码对应的配置文件进行推送,而导致避免推送的配置文件较大,但应用的热度较小时,终端设备在对配置文件中的所有热点代码进行编译后的编译文件进行存储后,所造成的终端设备的存储空间的浪费。
请参阅图4,图4示出了本申请另一个实施例提供的配置文件的处理方法的流程示意图。该配置文件的处理方法应用于上述配置文件的处理系统中的服务器。下面将针对图4所示的流程进行详细的阐述,所述配置文件的处理方法具体可以包括以下步骤:
步骤S210:在接收到终端设备发送的获取请求时,获取目标应用的热度,所述获取请求用于获取所述目标应用的热点代码。
在本申请实施例中,步骤S210可以参阅前述实施例的内容,在此不再赘述。
步骤S220:确定所述热度所属的热度范围。
在本申请实施例中,服务器在根据目标应用的热度,从目标应用对应的多个配置文件中确定用于推送的目标配置文件时,可以根据热度所属的热度范围,确定目标配置文件。
在一些实施方式中,热度可以为应用的下载量的排名。具体热度范围的划分,可以按照下载量的排名进行划分。例如,前N名处于一个热度范围,第N+1至第M名处于一个热度范围,M+1以后的排名作为一个热度范围,其中,M和N均为正整数,且M大于N。当然,对排名进行划分的具体方式可以不作为限定。
在一些实施方式中,热度可以为应用的下载量。具体热度范围的划分,可以直接按照下载量进行划分,例如,高于第一阈值的下载量为一个热度范围,处于第一阈值与第二阈值之间的下载量为一个热度范围,处于第二阈值与第三阈值之间的下载量为一个热度范围。当然,对下载量进行划分的具体方式可以不作为限定。
步骤S230:从所述目标应用对应的多个配置文件中获取所述热度范围对应的至少一个配置文件,作为目标配置文件。
在本申请实施例中,处于同一热度范围的热度,对应同样的配置文件,且不同热度范围所对应的配置文件的大小不同。另外热度大的热度范围,对应的配置文件的大小也越大。通过热度范围而区分需要推送的目标配置文件的大小,也可以使应用的热度小于一定值时,推送的目标配置文件的大小也相应减少,避免存储空间的浪费。
在一些实施方式中,目标应用的多个配置文件中每个配置文件中的热点代码的大小不同,服务器可以从多个配置文件中获取目标数量的配置文件,作为目标配置文件,目标数量与热度范围对应。
进一步的,多个配置文件中与热度范围对应的配置文件为多个配置文件的组合,且存在多种组合时,服务器还可以根据多种组合的配置文件中热点代码的使用频率,从多种组合中确定配置文件的热点代码使用频率满足预设频率条件的组合,作为目标配置文件。其中,预设频率条件可以包括选取出的组合中的热点代码的使用频率高于其他组合中的热点代码的使用频率。例如,对多种组合的配置文件中热点代码的使用频率按照从大到小的顺序排序,然后选取前p种组合的配置文件的热点代码,p为正整数。其中,使用频率可以由服务器从其他安装有目标应用的终端设备获得。从而可以保证推送的配置文件的大小不仅与热度范围对应,而且还保证了推送的配置文件能更符合用户的需求。
在一些实施方式中,多个配置文件中与热度范围对应的配置文件为多个配置文件的组合,且存在多种组合时,服务器还可以根据多种组合的配置文件中热点代码的使用频率,从多种组合中确定配置文件的热点代码使用频率最高的组合,作为目标配置文件。
在一些实施方式中,服务器从目标应用对应的多个配置文件中获取所述热度范围对应的至少一个配置文件,可以包括:
当所述热度所属的热度范围为第一热度范围时,从所述多个配置文件中获取第一配置文件以及第二配置文件,作为所述目标配置文件,所述多个配置文件预先根据所述目标应用的热点代码生成,所述多个配置文件中每个配置文件的大小不同;当所述热度所属的热度范围为第二热度范围时,从所述多个配置文件中获取第三配置文件以及所述第一配置文件,作为所述目标配置文件,所述第三配置文件的大小小于所述第二配置文件的大小,所述第一热度范围中的最小热度大于所述第二热度范围中的最大热度;当所述热度所属的热度范围为第三热度范围时,从所述多个配置文件中获取所述第一配置文件,作为所述目标配置文件,其中,所述第二热度范围中的最小热度大于所述第三热度范围中的最大热度。
在该实施方式中,第一热度范围、第二热度范围以及第三热度范围是热度依次减小的范围,例如,热度为下载量排名时,第一热度范围可以为前50的排名,第二热度范围可以为51~100的排名,第三热度范围可以为101以上的排名。可以看出,第一热度范围、第二热度范围以及第三热度范围对应的目标配置文件中均包括有第一配置文件,而第一热度范围以及第二热度范围对应的目标配置文件中还包括有其他配置文件(第二配置文件或者第三配置文件),由于第二热度范围的热度小于第一热度范围的热度,因此,第三配置文件的大小小于第二配置文件的大小,这样保证了第一热度范围、第二热度范围以及第三热度范围对应的目标配置文件的大小依次减小,在到目标配置文件推送至终端设备后,则可以体现出热度小于一定热度,推送的配置文件的大小也相应减小,使得对于热度较低的应用,不会全部的热点代码被编译,也就不会导致编译后的编译文件进行存储后,所造成的终端设备的存储空间的浪费。
需要说明的是,不同热度范围对应的目标配置文件中可以包括相同的热点代码,也可以不包括相同的热点代码,即不同热度范围对应的目标配置文件中的热点代码互不相同。
步骤S240:将所述目标配置文件发送至所述终端设备,所述目标配置文件用于指示所述终端设备对所述目标配置文件中的热点代码进行预编译。
在本申请实施例中,接收到获取请求的服务器在获取到目标配置文件后,则可以将目标配置文件发送至推送至上述终端设备,以便发送获取请求的终端设备能够获取到目标配置文件,并对目标配置文件中的热点代码进行编译,将编译产生的编译文件进行存储。
在一些实施方式中,当目标配置文件中包括至少两个配置文件时,所述至少两个配置文件用 于指示所述终端设备对所述至少两个配置文件中的热点代码进行分阶段的预编译;当目标配置文件中包括一个配置文件时,目标配置文件用于指示终端设备对所述目标配置文件中的热点代码进行一次性的预编译。可以理解的,当目标配置文件中包括至少两个配置文件,可能会导致编译时长较长,如果是安装应用时进行编译,则会导致安装时长较长,通过分阶段编译,则可以避免安装时长过长;如果是终端设备处于可进行编译的状态(空闲状态且处于充电状态)时,进行编译,对至少两个配置文件中的热点代码进行一次性的编译,则可能导致编译时长过长而未编译完时,终端设备就处于不满足可进行编译的状态,而使得编译失败,下次再等到满足可进行编译的状态时,又重新对至少两个配置文件中的热点代码进行编译,通过分阶段编译,则可以很好的解决该问题。
在一些实施方式中,获取请求还可以用于获取目标应用的安装包,也就是说,该获取请求用于同时获取目标应用的安装包以及热点代码。服务器还可以将安装包发送至终端设备。当目标配置文件中包括至少两个配置文件时,则可以在根据安装包安装目标应用时,对其中一个配置文件的热点代码进行编译,而其他的配置文件的热点代码则在安装完成后,终端设备处于可进行编译的状态时,再进行编译。
作为一种具体的实施方式,在以上的服务器根据热度范围处于第一热度范围、第二热度范围或者第三热度范围,确定目标配置文件的方式中,第一配置文件中的热点代码至少包括启动代码,且第二配置文件的大小大于第一配置文件的大小。该配置文件的处理方法还可以包括:将目标应用的安装包发送至终端设备。在该实施方式下,第一配置文件用于指示终端设备在根据安装包对目标应用进行安装的同时,对第一配置文件中的启动代码进行预编译;第二配置文件以及第三配置文件用于指示终端设备在对目标应用安装完成后,对第二配置文件或者第三配置文件中的热点代码进行预编译。通过该方式,终端设备可以在下载应用时,服务器同时将安装包以及目标配置文件进行推送,并且启动代码在应用安装时进行编译,而其余的配置文件中的热点代码在安装后进行编译,可以有效避免推送的目标配置文件中的全部热点代码在安装时进行编译,而导致安装时长较长的问题。
本申请实施例提供的配置文件的处理方法,服务器通过在接收到终端设备发送的获取请求时,获取目标应用的热度,该获取请求用于获取目标应用的热点代码,然后根据该热度,确定所属的热度范围,确定目标应用对应的多个配置文件中与热度范围对应的至少一个配置文件,作为目标配置文件,该多个配置文件预先根据目标应用的热点代码生成,且多个配置文件中每个配置文件的大小不同,将目标配置文件发送至终端设备,目标配置文件用于指示该终端设备对目标配置文件中的热点代码进行预编译。推送至终端设备的目标配置文件的大小是与热度相对应的,这样也避免了将目标应用的全部热点代码对应的配置文件进行推送,而导致避免推送的配置文件较大,但应用的热度较小时,终端设备在对配置文件中的所有热点代码进行编译后的编译文件进行存储后,所造成的终端设备的存储空间的浪费。
请参阅图5,图5示出了本申请又一个实施例提供的配置文件的处理方法的流程示意图。该配置文件的处理方法应用于上述配置文件的处理系统中的服务器。下面将针对图5所示的流程进行详细的阐述,所述配置文件的处理方法具体可以包括以下步骤:
步骤S310:获取所述目标应用的热点代码。
在本申请实施例中,还提供了预先根据目标应用的热点代码生成多个配置文件的方式。首先,服务器可以获取目标应用的热点代码。
在一些实施方式中,服务器可以接收其他终端发送的目标应用的配置文件,并将配置文件进行存储。可以理解的,服务器可以从其他终端搜集目标应用的配置文件,并将目标应用的配置文件进行存储。具体的,服务器可以对从多个终端设备的配置文件进行整合,将整合后的配置文件作为指定配置文件,以便后续进行推送时,推送的配置文件中的热点代码更加准确。其中,该服务器可以为用于处理上述获取请求的服务器,也可以为用于存储配置文件的其他服务器,在此不做限定。服务器获得目标应用的指定配置文件之后,可以从指定配置文件中获取目标应用的热点代码。
步骤S320:根据所述热点代码中热点代码的功能,生成多个配置文件,每个配置文件中热点代码实现的功能的数量不同,且每个配置文件中的热点代码的大小不同。
在本申请实施例中,服务器可以根据热点代码中热点代码的功能,生成多个配置文件,每个配置文件中热点代码实现的功能的数量不同,且每个配置文件中的热点代码的大小不同。如此,可以使得后续从多个配置文件中确定目标配置文件时,能依据热点代码实现的功能进行确定,以贴合用户的需求。
在一些实施方式中,服务器根据所述热点代码中热点代码的功能,生成多个配置文件,可以包括:根据所述热点代码中热点代码的功能,从所述热点代码中分离出多个热点代码,每个热点代码的功能不同;从所述多个热点代码中,获取第一部分的热点代码、第二部分的热点代码以及第三部分的热点代码,其中,所述第一部分的热点代码包括用于实现启动功能的热点代码,所述第一部分的热点代码包括用于实现启动功能的热点代码,所述第二部分的热点代码中热点代码的数量多于所述第三部分的热点代码中热点代码的数量,且第二部分的热点代码的大小大于所述第三部分的热点代码大小;分别根据所述第一部分的热点代码、第二部分的热点代码以及第三部分的热点代码,生成配置文件。
在该实施方式中,服务器分别根据第一部分的热点代码、第二部分的热点代码以及第三部分的热点代码,生成配置文件,可以获得三个配置文件,并且,其中一个配置文件包括第一部分的热点代码,一个配置文件包括第二部分的热点代码,一个配置文件包括第三部分的热点代码,由于启动代码用于实现启动功能,其大小通常小于用于实现其他功能的热点代码,因此第二部分的热点代码以及第三部分的热点代码的大小可以大于第一部分的热点代码的大小,而第二部分的热点代码的大小大于第三部分的热点代码大小,从而使得生成的三个配置文件的大小互不相同,也就是说,第二部分的热点代码对应的配置文件的大小、第三部分的热点代码对应的配置文件的大小以及第一部分的热点代码对应的配置文件的大小,为依次递减。
另外,由于第二部分的热点代码中热点代码的数量多于第三部分的热点代码中热点代码的数量,这样使得第二部分的热点代码中热点代码可实现的功能多余第三部分的热点代码中热点代码实现的功能。这样可以使得在进行推送时,不仅能根据热度选取不同大小的配置文件,还能实现推送实现的功能的数量不同的热点代码对应的配置文件。
在一种具体实施方式中,上述第二部分的热点代码以及第三部分的热点代码中可以均不包括第一部分的热点代码,第二部分的热点代码可以包括第三部分的热点代码。例如,第二部分的热点代码可以用于实现目标应用的大多数功能(启动功能除外),第三部分的热点代码可以用于实现目标应用的基本功能。该方式下,通过按照热点代码的功能,生成的多个大小不同的配置文件,可以使得服务器在确定目标配置文件时,能根据目标应用的热度,推送不同大小的配置文件。
步骤S330:在接收到终端设备发送的获取请求时,获取目标应用的热度,所述获取请求用于获取所述目标应用的热点代码。
在本申请实施例中,步骤S330可以参阅前述实施例的内容,在此不再赘述。
步骤S340:根据所述热度,确定所述目标应用对应的多个配置文件中的至少一个配置文件,作为目标配置文件,所述多个配置文件预先根据所述目标应用的热点代码生成,所述多个配置文件中每个配置文件的大小不同。
在本申请实施例中,不同的配置文件的热点代码实现的功能的数量也不同,使得服务器在推送不同大小的配置文件时,其推送的配置文件中热点代码实现的功能的数量也能与大小相对应,也就是说,配置文件的大小越大,配置文件中热点代码实现的功能的数量也越多。
在一些实施方式中,服务器在根据目标应用的热度,确定目标应用对应的多个配置文件中的至少一个配置文件时,如果目标应用的多个配置文件是根据上述实施方式中的第一部分的热点代码、第二部分的热点代码以及第三部分的热点代码生成时,则服务器可以从三个配置文件中选取一个或至少两个配置文件,作为目标配置文件。
作为一种实施方式,该实施方式可以与前个实施例的实施方式结合,其中,前个实施例中的实施方式为:热度所属的热度范围处于第四热度范围,目标配置文件为第四配置文件以及第五配置文件;热度所属的热度范围处于第五热度范围,目标配置文件为第四配置文件以及第六配置文件;热度所属的热度范围处于第六热度范围,目标配置文件为第四配置文件。并且第四配置文件可以为以上第一部分的热点代码对应的配置文件,第五配置文件可以为以上第二部分的热点代码对应的配置文件,第六配置文件为以上第三部分的热点代码对应的配置文件。
示例性的,应用的下载量处于排名前50时(即热度范围为第一热度范围),服务器可以推送启动代码对应的配置文件以及大部分功能的热点代码对应的配置文件;应用的下载量处于51~100的排名时(即热度范围为第二热度范围),服务器可以推送启动代码对应的配置文件以及大部分功能的热点代码对应的配置文件;应用的下载量处于100以上的排名时(即热度范围为第三热度范围),服务器可以推送启动代码对应的配置文件以及基本功能的热点代码对应的配置文件。
步骤S350:将所述目标配置文件发送至所述终端设备,所述目标配置文件用于指示所述终端设备对所述目标配置文件中的热点代码进行预编译。
在本申请实施例中,步骤S350可以参阅前述实施例的内容,在此不再赘述。
本申请实施例提供的配置文件的处理方法,通过获取目标应用的热点代码,根据目标应用的热点代码中的功能,生成多个配置文件,并且不同配置文件中热点代码的功能和大小不同。从而服务器能根据目标应用的热度,向终端设备推送不同大小的配置文件,并且推送的配置文件中热点代码实现的功能的数量也能与大小相对应,也就是说,配置文件的大小越大,配置文件中热点代码实现的功能的数量也越多,能满足用户的需求,提升用户体验。
请参阅图6,图6示出了本申请再一个实施例提供的配置文件的处理方法的流程示意图。该配置文件的处理方法应用于上述配置文件的处理系统中的终端设备,下面将针对图6所示的流程进行详细的阐述,所述配置文件的处理方法具体可以包括以下步骤:
步骤S410:发送获取请求至服务器,所述获取请求用于获取目标应用的热点代码。
步骤S420:接收所述服务器下发的目标配置文件,所述目标配置文件由所述服务器根据所述目标应用的热度,从所述目标应用对应的多个配置文件中确定,所述多个配置文件预先根据所述目标应用的热点代码生成,所述多个配置文件中每个配置文件的大小不同。
在本申请实施例中,步骤S410以及步骤S420与前述实施例中服务器与终端设备进行交互的内容相对应,在此不再赘述。
步骤S430:对所述目标配置文件中的热点代码进行预编译,并将预编译后得到的编译文件进行存储。
在本申请实施例中,在接收到服务器推送的目标配置文件之后,目标配置文件中包括有相应大小的热点代码,终端设备可以对其中的热点代码进行预编译,并将预编译得到的编译文件进行存储。编译文件中的文件为二进制的机器代码,因此当终端设备运行目标配置文件中的热点代码时,可以直接执行编译文件中的二进制的机器代码,提升运行目标应用的效率。另外,终端设备获得的目标配置文件的大小是与热度相对应的,这样也避免了将目标应用的全部热点代码对应的配置文件进行推送,而导致避免推送的配置文件较大,但应用的热度较小时,终端设备在对配置文件中的所有热点代码进行编译后的编译文件进行存储后,所造成的终端设备的存储空间的浪费。
请参阅图7,图7示出了本申请又另一个实施例提供的配置文件的处理方法的流程示意图。该配置文件的处理方法应用于上述配置文件的处理系统中的终端设备,下面将针对图7所示的流程进行详细的阐述,所述配置文件的处理方法具体可以包括以下步骤:
步骤S510:发送获取请求至服务器,所述获取请求用于获取目标应用的热点代码。
步骤S520:接收所述服务器下发的目标配置文件,所述目标配置文件由所述服务器根据所述目标应用的热度,从所述目标应用对应的多个配置文件中确定,所述多个配置文件预先根据所述目标应用的热点代码生成,所述多个配置文件中每个配置文件的大小不同。
在本申请实施例中,步骤S510以及步骤S520可以参阅前述实施例的内容,在此不再赘述。
步骤S530:当所述目标配置文件中包括至少两个配置文件时,分阶段对所述至少两个配置文件中的热点代码进行预编译,并将预编译后得到的编译文件进行存储。
在本申请实施例中,服务器向终端设备推送的目标配置文件中可能包括至少两个配置文件,因此,当目标配置文件中包括至少两个配置文件,可能会导致编译时长较长,如果是安装应用时进行编译,则会导致安装时长较长,通过分阶段编译,则可以避免安装时长过长;如果是终端设备处于可进行编译的状态(空闲状态且处于充电状态)时,进行编译,对至少两个配置文件中的热点代码进行一次性的编译,则可能导致编译时长过长而未编译完时,终端设备就处于不满足可进行编译的状态,而使得编译失败,下次再等到满足可进行编译的状态时,又重新对至少两个配置文件中的热点代码进行编译,通过分阶段编译,则可以很好的解决该问题。
在一些实施方式中,获取请求还用于获取目标应用的安装包,服务器还可以将安装包发送至终端设备,相应的,终端设备还可以接收服务器发送的目标应用的安装包。当目标配置文件中包括至少两个配置文件时,则可以在根据安装包安装目标应用时,对其中一个配置文件的热点代码进行编译,而其他的配置文件的热点代码则在安装完成后,终端设备处于可进行编译的状态时,再进行编译。
作为一种具体的实施方式,目标配置文件包括第一目标配置文件以及第二目标配置文件。第一目标配置文件中的热点代码包括启动代码,且第二目标配置文件的大小大于第一目标配置文件的大小,此时,终端设备分阶段对至少两个配置文件中的热点代码进行预编译,可以包括:在根据安装包对目标应用进行安装的同时,对第一目标配置文件中的启动代码进行预编译;在对目标应用安装完成后,对第二目标配置文件中的热点代码进行预编译。从而可以使得终端设备在下载应用后,对应用安装时,可以仅对启动代码进行编译,而其他的热点代码则在编译完成后,进行编译,可以有效避免推送的目标配置文件中的全部热点代码在安装时进行编译,而导致安装时长 较长的问题。
进一步地,在对所述目标应用安装完成后,当所述终端设备满足指定状态时,对所述第二目标配置文件中的热点代码进行预编译。其中,指定状态可以指终端设备可以对热点代码进行预编译的状态,指定状态可以为终端设备处于空闲且充电的状态,例如,终端设备充电状态下,熄屏一定时间后,则可以满足指定状态。
步骤S540:当所述目标配置文件中包括一个配置文件时,对所述目标配置文件中的热点代码进行一次性的预编译,并将预编译后得到的编译文件进行存储。
在本申请实施例中,当服务器推送的目标配置文件中仅包括一个配置文件时,则终端设备可以一次性的对该配置文件中的热点代码进行预编译。例如,如果终端设备是在下载目标应用时获得目标配置文件,则可以在安装目标应用时对该配置文件中的启动代码进行预编译,并将编译产生的编译文件进行存储。
本申请实施例提供的配置文件的处理方法,通过向服务器发送获取热点代码的请求,然后接收服务器返回的目标配置文件,当目标配置文件中包括至少两个配置文件时,则可以对至少两个配置文件中的热点代码进行分阶段的预编译,可以有效避免安装时长较长的问题或者编译失败而导致的多次编译的问题。
请参阅图8,其示出了本申请一个实施例提供的一种配置文件的处理装置400的结构框图。该配置文件的处理装置400应用上述配置文件的处理中的服务器。该配置文件的处理装置400包括:请求接收模块410、文件获取模块420以及文件发送模块430。其中,所述请求接收模块410用于在接收到终端设备发送的获取请求时,获取目标应用的热度,所述获取请求用于获取所述目标应用的热点代码;所述文件获取模块420用于根据所述热度,确定所述目标应用对应的多个配置文件中的至少一个配置文件,作为目标配置文件,所述多个配置文件预先根据所述目标应用的热点代码生成,所述多个配置文件中每个配置文件的大小不同;所述文件发送模块430用于将所述目标配置文件发送至所述终端设备,所述目标配置文件用于指示所述终端设备对所述目标配置文件中的热点代码进行预编译。
在一些实施方式中,当所述目标配置文件中包括至少两个配置文件时,所述至少两个配置文件用于指示所述终端设备对所述至少两个配置文件中的热点代码进行分阶段的预编译;当所述目标配置文件中包括一个配置文件时,所述目标配置文件用于指示所述终端设备对所述目标配置文件中的热点代码进行一次性的预编译。
在一些实施方式中,文件获取模块420可以包括:第一获取单元,用于当所述热度所属的热度范围为第一热度范围时,从所述多个配置文件中获取第一配置文件以及第二配置文件,作为所述目标配置文件;第二获取单元,用于当所述热度所属的热度范围为第二热度范围时,从所述多个配置文件中获取第三配置文件以及所述第一配置文件,作为所述目标配置文件,所述第三配置文件的大小小于所述第二配置文件的大小,所述第一热度范围中的最小热度大于所述第二热度范围中的最大热度。
在该实施方式下,文件获取模块420还可以包括第三获取单元,用于当所述热度所属的热度范围为第三热度范围时,从所述多个配置文件中获取所述第一配置文件,作为所述目标配置文件,其中,所述第二热度范围中的最小热度大于所述第三热度范围中的最大热度。
进一步的,所述获取请求还用于获取所述目标应用的安装包,所述第一配置文件中的热点代码至少包括启动代码,且所述第二配置文件的大小大于所述第一配置文件的大小。文件发送模块430还可以用于将所述目标应用的安装包发送至所述终端设备。此时,所述第一配置文件用于指示所述终端设备在根据所述安装包对所述目标应用进行安装的同时,对所述第一配置文件中的启动代码进行预编译;所述第二配置文件以及所述第三配置文件用于指示所述终端设备在对所述目标应用安装完成后,对所述第二配置文件或者所述第三配置文件中的热点代码进行预编译。
在一些实施方式中,该配置文件的处理装置400还可以包括:代码获取模块以及文件生成模块。代码获取模块用于获取所述目标应用的热点代码;文件生成模块用于根据所述热点代码中热点代码的功能,生成多个配置文件,每个配置文件中热点代码实现的功能的数量不同,且每个配置文件中的热点代码的大小不同。
进一步的,代码获取模块可以包括:代码分离单元,用于根据所述热点代码中热点代码的功能,从所述热点代码中分离出多个热点代码,每个热点代码的功能不同;代码确定单元,用于以及第三部分的热点代码,其中,所述第一部分的热点代码包括用于实现启动功能的热点代码,所述第一部分的热点代码包括用于实现启动功能的热点代码,所述第二部分的热点代码中热点代码的数量多于所述第三部分的热点代码中热点代码的数量,且第二部分的热点代码的大小大于所述 第三部分的热点代码大小;生成执行单元,用于分别根据所述第一部分的热点代码、第二部分的热点代码以及第三部分的热点代码,生成配置文件。
请参阅图9,其示出了本申请另一个实施例提供的一种配置文件的处理装置500的结构框图。该配置文件的处理装置500应用上述配置文件的处理中的终端设备。该配置文件的处理装置500包括:请求发送模块510、文件接收模块520以及代码编译模块530。其中,所述请求发送模块510用于发送获取请求至服务器,所述获取请求用于获取目标应用的热点代码;所述文件接收模块520用于接收所述服务器下发的目标配置文件,所述目标配置文件由所述服务器根据所述目标应用的热度,从所述目标应用对应的多个配置文件中确定,所述多个配置文件预先根据所述目标应用的热点代码生成,所述多个配置文件中每个配置文件的大小不同;所述代码编译模块530用于对所述目标配置文件中的热点代码进行预编译,并将预编译后得到的编译文件进行存储。
在一些实施方式中,代码编译模块530可以包括:第一编译单元,用于当所述目标配置文件中包括至少两个配置文件时,分阶段对所述至少两个配置文件中的热点代码进行预编译;第二编译单元,用于当所述目标配置文件中包括一个配置文件时,对所述目标配置文件中的热点代码进行一次性的预编译。
在一些实施方式中,所述获取请求还用于获取所述目标应用的安装包,所述目标配置文件包括第一目标配置文件以及第二目标配置文件,所述第一目标配置文件中的热点代码包括启动代码,且所述第二目标配置文件的大小大于所述第一目标配置文件的大小。
在该方式下,配置文件的处理装置500还可以包括:安装包接收模块,用于接收所述服务器发送的所述目标应用的安装包。代码编译模块430可以包括:第三编译单元,用于在根据所述安装包对所述目标应用进行安装的同时,对所述第一目标配置文件中的启动代码进行预编译;第四编译单元,用于在对所述目标应用安装完成后,对所述第二目标配置文件中的热点代码进行预编译。
进一步的,第四编译单元可以具体用于:在对所述目标应用安装完成后,当所述终端设备满足指定状态时,对所述第二目标配置文件中的热点代码进行预编译。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
本申请实施例还提供了一种配置文件的处理系统,该配置文件的处理系统包括终端设备以及服务器。所述服务器与所述终端设备通信连接,例如,请再次参阅图1,服务器可以为第一服务器200。其中,所述终端设备用于发送获取请求至服务器,所述获取请求用于获取目标应用的热点代码;所述服务器用于接收所述获取请求,在接收到终端设备发送的获取请求时,获取所述目标应用的热度,根据所述热度,确定所述目标应用对应的多个配置文件中的至少一个配置文件,作为目标配置文件,所述多个配置文件为预先根据所述目标应用的热点代码生成,所述多个配置文件中每个配置文件的大小不同;所述服务器还用于将所述目标配置文件发送至所述终端设备;所述终端设备还用于接收所述目标配置文件,对所述目标配置文件中的热点代码进行预编译,并将预编译后得到的编译文件进行存储。
综上所述,本申请提供的方案,服务器通过在接收到终端设备发送的获取请求时,获取目标应用的热度,该获取请求用于获取目标应用的热点代码,然后根据该热度,确定目标应用对应的多个配置文件中的至少一个配置文件,作为目标配置文件,该多个配置文件预先根据目标应用的热点代码生成,且多个配置文件中每个配置文件的大小不同,将目标配置文件发送至终端设备,目标配置文件用于指示该终端设备对目标配置文件中的热点代码进行预编译。从而可以实现服务器在向终端设备推送应用的配置文件时,推送的配置文件的大小由应用的热度确定,避免推送的配置文件较大,而应用的热度较小,导致终端设备的存储空间的浪费。
请参考图10,其示出了本申请实施例提供的一种终端设备的结构框图。该终端设备100可以是智能手机、平板电脑、智能手表等能够运行应用程序的电子设备。本申请中的终端设备100可以包括一个或多个如下部件:处理器110、存储器120、以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。
处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个终端设 备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行终端设备100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。
请参考图11,其示出了本申请实施例提供的一种服务器的结构框图。该服务器600可以是传统服务器、云服务器等。本申请中的服务器600可以包括一个或多个如下部件:处理器610、存储器620、以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器620中并被配置为由一个或多个处理器610执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。
处理器610可以包括一个或者多个处理核。处理器610利用各种接口和线路连接整个服务器600内的各个部分,通过运行或执行存储在存储器620内的指令、程序、代码集或指令集,以及调用存储在存储器620内的数据,执行服务器600的各种功能和处理数据。可选地,处理器610可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器610可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器610中,单独通过一块通信芯片进行实现。
存储器620可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器620可用于存储指令、程序、代码、代码集或指令集。存储器620可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储服务器600在使用中所创建的数据等。
请参考图12,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。
计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (20)

  1. 一种配置文件的处理方法,其特征在于,应用于服务器,所述方法包括:
    在接收到终端设备发送的获取请求时,获取目标应用的热度,所述获取请求用于获取所述目标应用的热点代码;
    根据所述热度,确定所述目标应用对应的多个配置文件中的至少一个配置文件,作为目标配置文件,所述多个配置文件预先根据所述目标应用的热点代码生成,所述多个配置文件中每个配置文件的大小不同;
    将所述目标配置文件发送至所述终端设备,所述目标配置文件用于指示所述终端设备对所述目标配置文件中的热点代码进行预编译。
  2. 根据权利要求1所述的方法,其特征在于,当所述目标配置文件中包括至少两个配置文件时,所述至少两个配置文件用于指示所述终端设备对所述至少两个配置文件中的热点代码进行分阶段的预编译;
    当所述目标配置文件中包括一个配置文件时,所述目标配置文件用于指示所述终端设备对所述目标配置文件中的热点代码进行一次性的预编译。
  3. 根据权利要求1所述的方法,其特征在于,所述确定所述目标应用对应的多个配置文件中的至少一个配置文件,作为目标配置文件,包括:
    当所述热度所属的热度范围为第一热度范围时,从所述多个配置文件中获取第一配置文件以及第二配置文件,作为所述目标配置文件;
    当所述热度所属的热度范围为第二热度范围时,从所述多个配置文件中获取第三配置文件以及所述第一配置文件,作为所述目标配置文件,所述第三配置文件的大小小于所述第二配置文件的大小,所述第一热度范围中的最小热度大于所述第二热度范围中的最大热度。
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述热度,确定所述目标应用对应的多个配置文件中的至少一个配置文件,作为目标配置文件,还包括:
    当所述热度所属的热度范围为第三热度范围时,从所述多个配置文件中获取所述第一配置文件,作为所述目标配置文件,其中,所述第二热度范围中的最小热度大于所述第三热度范围中的最大热度。
  5. 根据权利要求3或4所述的方法,其特征在于,所述确定所述目标应用对应的多个配置文件中的至少一个配置文件,作为目标配置文件,还包括:
    当所述多个配置文件中与所述热度所属的热度范围对应的配置文件为多种组合的配置文件时,获取所述多种组合的配置文件中热点代码的使用频率;
    将所述使用频率满足预设频率条件的组合的配置文件作为所述目标配置文件。
  6. 根据权利要求3-5任一项所述的方法,其特征在于,所述获取请求还用于获取所述目标应用的安装包,所述第一配置文件中的热点代码至少包括启动代码,且所述第二配置文件的大小大于所述第一配置文件的大小,所述方法还包括:
    将所述目标应用的安装包发送至所述终端设备,所述第一配置文件用于指示所述终端设备在根据所述安装包对所述目标应用进行安装的同时,对所述第一配置文件中的启动代码进行预编译;
    所述第二配置文件以及所述第三配置文件用于指示所述终端设备在对所述目标应用安装完成后,对所述第二配置文件或者所述第三配置文件中的热点代码进行预编译。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,在所述根据所述热度,确定所述目标应用对应的多个配置文件中的至少一个配置文件,作为目标配置文件之前,所述方法还包括:
    获取所述目标应用的热点代码;
    根据所述热点代码中热点代码的功能,生成多个配置文件,每个配置文件中热点代码实现的功能的数量不同,且每个配置文件中的热点代码的大小不同。
  8. 根据权利要求7所述的方法,其特征在于,所述获取所述目标应用的热点代码,包括:
    接收多个其他终端设备发送的所述目标应用的配置文件;
    将所述多个其他终端设备发送的所述目标应用的配置文件进行整合,将整合后的配置文件作为指定配置文件;
    根据所述指定配置文件,获取所述目标应用的所述热点代码。
  9. 根据权利要求7或8所述的方法,其特征在于,所述根据所述热点代码中热点代码的功能, 生成多个配置文件,包括:
    根据所述热点代码中热点代码的功能,从所述热点代码中分离出多个热点代码,每个热点代码的功能不同;
    从所述多个热点代码中,获取第一部分的热点代码、第二部分的热点代码以及第三部分的热点代码,其中,所述第一部分的热点代码包括用于实现启动功能的热点代码,所述第一部分的热点代码包括用于实现启动功能的热点代码,所述第二部分的热点代码中热点代码的数量多于所述第三部分的热点代码中热点代码的数量,且第二部分的热点代码的大小大于所述第三部分的热点代码大小;
    分别根据所述第一部分的热点代码、第二部分的热点代码以及第三部分的热点代码,生成配置文件。
  10. 根据权利要求9所述的方法,其特征在于,所述确定所述目标应用对应的多个配置文件中的至少一个配置文件,作为目标配置文件,包括:
    当所述热度所属的热度范围为第四热度范围时,将第四配置文件以及第五配置文件作为所述目标配置文件,所述第四配置文件为所述第一部分的热点代码对应的配置文件,所述第五配置文件为所述第二部分的热点代码对应的配置文件;
    当所述热度所属的热度范围为第五热度范围时,将所述第四配置文件以及第六配置文件作为所述目标配置文件,所述第六配置文件为所述第三部分的热点代码对应的配置文件,所述第四热度范围中的最小热度大于所述第五热度范围中的最大热度;
    当所述热度所属的热度范围为第六热度范围时,将所述第四配置文件作为所述目标配置文件,所述第五热度范围中的最小热度大于所述第六热度范围中的最大热度。
  11. 一种配置文件的处理方法,其特征在于,应用于终端设备,所述方法包括:
    发送获取请求至服务器,所述获取请求用于获取目标应用的热点代码;
    接收所述服务器下发的目标配置文件,所述目标配置文件由所述服务器根据所述目标应用的热度,从所述目标应用对应的多个配置文件中确定,所述多个配置文件预先根据所述目标应用的热点代码生成,所述多个配置文件中每个配置文件的大小不同;
    对所述目标配置文件中的热点代码进行预编译,并将预编译后得到的编译文件进行存储。
  12. 根据权利要求11所述的方法,其特征在于,所述对所述目标配置文件中的热点代码进行预编译,包括:
    当所述目标配置文件中包括至少两个配置文件时,分阶段对所述至少两个配置文件中的热点代码进行预编译;
    当所述目标配置文件中包括一个配置文件时,对所述目标配置文件中的热点代码进行一次性的预编译。
  13. 根据权利要求12所述的方法,其特征在于,所述获取请求还用于获取所述目标应用的安装包,所述目标配置文件包括第一目标配置文件以及第二目标配置文件,所述第一目标配置文件中的热点代码包括启动代码,且所述第二目标配置文件的大小大于所述第一目标配置文件的大小;
    所述方法还包括:
    接收所述服务器发送的所述目标应用的安装包;
    所述分阶段对所述至少两个配置文件中的热点代码进行预编译,包括:
    在根据所述安装包对所述目标应用进行安装的同时,对所述第一目标配置文件中的启动代码进行预编译;
    在对所述目标应用安装完成后,对所述第二目标配置文件中的热点代码进行预编译。
  14. 根据权利要求13所述的方法,其特征在于,所述在对所述目标应用安装完成后,对所述第二目标配置文件中的热点代码进行预编译,包括:
    在对所述目标应用安装完成后,当所述终端设备满足指定状态时,对所述第二目标配置文件中的热点代码进行预编译。
  15. 一种配置文件的处理装置,其特征在于,应用于服务器,所述装置包括:请求接收模块、文件获取模块以及文件发送模块,其中,
    所述请求接收模块用于在接收到终端设备发送的获取请求时,获取目标应用的热度,所述获取请求用于获取所述目标应用的热点代码;
    所述文件获取模块用于根据所述热度,确定所述目标应用对应的多个配置文件中的至少一个配置文件,作为目标配置文件,所述多个配置文件预先根据所述目标应用的热点代码生成,所述多个配置文件中每个配置文件的大小不同;
    所述文件发送模块用于将所述目标配置文件发送至所述终端设备,所述目标配置文件用于指示所述终端设备对所述目标配置文件中的热点代码进行预编译。
  16. 一种配置文件的处理装置,其特征在于,应用于终端设备,所述装置包括:请求发送模块、文件接收模块以及代码编译模块,其中,
    所述请求发送模块用于发送获取请求至服务器,所述获取请求用于获取目标应用的热点代码;
    所述文件接收模块用于接收所述服务器下发的目标配置文件,所述目标配置文件由所述服务器根据所述目标应用的热度,从所述目标应用对应的多个配置文件中确定,所述多个配置文件预先根据所述目标应用的热点代码生成,所述多个配置文件中每个配置文件的大小不同;
    所述代码编译模块用于对所述目标配置文件中的热点代码进行预编译,并将预编译后得到的编译文件进行存储。
  17. 一种配置文件的处理系统,其特征在于,所述系统包括服务器以及终端设备,所述服务器与所述终端设备通信连接,其中,
    所述终端设备用于发送获取请求至服务器,所述获取请求用于获取目标应用的热点代码;
    所述服务器用于接收所述获取请求,在接收到终端设备发送的获取请求时,获取所述目标应用的热度,根据所述热度,确定所述目标应用对应的多个配置文件中的至少一个配置文件,作为目标配置文件,所述多个配置文件为预先根据所述目标应用的热点代码生成,所述多个配置文件中每个配置文件的大小不同;
    所述服务器还用于将所述目标配置文件发送至所述终端设备;
    所述终端设备还用于接收所述目标配置文件,对所述目标配置文件中的热点代码进行预编译,并将预编译后得到的编译文件进行存储。
  18. 一种服务器,其特征在于,包括:
    一个或多个处理器;
    存储器;
    一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求1-10任一项所述的方法。
  19. 一种终端设备,其特征在于,包括:
    一个或多个处理器;
    存储器;
    一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求11-14任一项所述的方法。
  20. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-10任一项所述的方法、或者执行如权利要求11-14任一项所述的方法。
PCT/CN2020/136154 2019-12-18 2020-12-14 配置文件的处理方法、装置、系统及存储介质 WO2021121188A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911312519.2 2019-12-18
CN201911312519.2A CN113010172B (zh) 2019-12-18 2019-12-18 配置文件的处理方法、装置、系统及存储介质

Publications (1)

Publication Number Publication Date
WO2021121188A1 true WO2021121188A1 (zh) 2021-06-24

Family

ID=76382478

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/136154 WO2021121188A1 (zh) 2019-12-18 2020-12-14 配置文件的处理方法、装置、系统及存储介质

Country Status (2)

Country Link
CN (1) CN113010172B (zh)
WO (1) WO2021121188A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377378A (zh) * 2021-07-02 2021-09-10 北京百度网讯科技有限公司 用于小程序的处理方法、装置、设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070214342A1 (en) * 2005-09-23 2007-09-13 Newburn Chris J System to profile and optimize user software in a managed run-time environment
CN104360858A (zh) * 2014-11-12 2015-02-18 华为技术有限公司 一种计算应用热度的方法及装置
CN104572969A (zh) * 2014-12-31 2015-04-29 乐视致新电子科技(天津)有限公司 跨应用的关联资源信息获取的方法和装置
CN107861732A (zh) * 2016-09-22 2018-03-30 法乐第(北京)网络科技有限公司 应用程序静默更新方法及装置
CN110162319A (zh) * 2019-04-15 2019-08-23 深圳壹账通智能科技有限公司 应用程序更新方法、装置、计算机设备及存储介质

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9519466B2 (en) * 2013-12-20 2016-12-13 Oracle International Corporation Executable code for constrained computing environments
US9477451B1 (en) * 2015-11-06 2016-10-25 International Business Machines Corporation Generating dynamic measurement metadata for efficient compilation and optimization on a target device
CN105843664A (zh) * 2016-04-20 2016-08-10 中国工程物理研究院计算机应用研究所 一种动态二进制翻译中基于代码热度的翻译缓存管理方法
CN106775893B (zh) * 2016-12-30 2020-03-17 北京小米移动软件有限公司 对程序预编译的方法及装置
CN110543338A (zh) * 2019-09-09 2019-12-06 北京安云世纪科技有限公司 一种文件的动态加载方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070214342A1 (en) * 2005-09-23 2007-09-13 Newburn Chris J System to profile and optimize user software in a managed run-time environment
CN104360858A (zh) * 2014-11-12 2015-02-18 华为技术有限公司 一种计算应用热度的方法及装置
CN104572969A (zh) * 2014-12-31 2015-04-29 乐视致新电子科技(天津)有限公司 跨应用的关联资源信息获取的方法和装置
CN107861732A (zh) * 2016-09-22 2018-03-30 法乐第(北京)网络科技有限公司 应用程序静默更新方法及装置
CN110162319A (zh) * 2019-04-15 2019-08-23 深圳壹账通智能科技有限公司 应用程序更新方法、装置、计算机设备及存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ANONYMOUS: "Improve Android App performance through ART", 3 April 2019 (2019-04-03), XP055821707, Retrieved from the Internet <URL:https://juejin.cn/post/6844903812566630408> *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377378A (zh) * 2021-07-02 2021-09-10 北京百度网讯科技有限公司 用于小程序的处理方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN113010172A (zh) 2021-06-22
CN113010172B (zh) 2023-08-29

Similar Documents

Publication Publication Date Title
CN111078318B (zh) 配置文件的处理方法、装置、系统及存储介质
CN109960507B (zh) 编译优化方法、装置、存储介质、智能终端及服务器
US10764202B2 (en) Container-based mobile code offloading support system in cloud environment and offloading method thereof
WO2021115177A1 (zh) 应用安装方法、装置、终端设备、服务器及存储介质
CN107832100B (zh) 一种apk插件的加载方法及其终端
US12121807B2 (en) Image processing method using a shared GPU shader cache mechanism and apparatus, server, and medium
US11893029B2 (en) Real-time streaming data ingestion into database tables
CN112948026A (zh) 热点代码处理方法、装置、服务器、电子设备及存储介质
WO2018036505A1 (zh) 一种终端后台应用程序的管理方法及装置
WO2020078136A1 (zh) 应用下载和发送的方法、装置及系统
WO2021135947A1 (zh) 热点代码处理方法、装置、电子设备及存储介质
CN114185491B (zh) 一种分区文件的下载方法、装置、存储介质及计算机设备
CN116643778B (zh) 一种应用程序优化方法及电子设备
CN112559088A (zh) 配置文件的优化方法、装置、服务器以及存储介质
CN110888658A (zh) 应用程序中功能模块的动态化方法、装置及存储介质
CN116028455A (zh) 一种数据处理方法、装置、存储介质及电子设备
CN117724852B (zh) 一种云电脑计算资源分配方法及装置
WO2021121188A1 (zh) 配置文件的处理方法、装置、系统及存储介质
WO2021115178A1 (zh) 应用程序预编译的方法、装置、服务器及存储介质
KR101164465B1 (ko) 가상머신에서 연속전달을 위한 방법 및 장치
CN107423093B (zh) 控制方法及装置、计算机装置和计算机可读存储介质
WO2017128589A1 (zh) 可运行文件生成方法、art虚拟机运行方法和装置
CN114637969A (zh) 目标对象的鉴权方法及装置
CN113568679A (zh) 插件加载方法、装置、存储介质及电子设备
WO2021135988A1 (zh) 热点代码处理方法、请求方法、装置及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20901029

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20901029

Country of ref document: EP

Kind code of ref document: A1