CN113031953A - Application program pre-compiling method and device, electronic equipment and server - Google Patents
Application program pre-compiling method and device, electronic equipment and server Download PDFInfo
- Publication number
- CN113031953A CN113031953A CN201911252047.6A CN201911252047A CN113031953A CN 113031953 A CN113031953 A CN 113031953A CN 201911252047 A CN201911252047 A CN 201911252047A CN 113031953 A CN113031953 A CN 113031953A
- Authority
- CN
- China
- Prior art keywords
- compiling
- configuration file
- application program
- target application
- hotspot
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 84
- 238000009434 installation Methods 0.000 claims description 31
- 230000006870 function Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000011900 installation process Methods 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 238000007499 fusion processing Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000000284 resting effect Effects 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the application discloses a method and a device for pre-compiling an application program, electronic equipment and a server. The method comprises the following steps: acquiring a plurality of hotspot compiling units corresponding to a target application program; dividing the plurality of hotspot compiling units into a plurality of parts, respectively generating a first configuration file corresponding to each part to obtain a plurality of first configuration files, wherein the hotspot compiling units in different first configuration files have different corresponding precompiling stages; the plurality of first configuration files are sent to the electronic device. The method enables the plurality of hot point compiling units corresponding to the target application program to be respectively precompiled in a staged mode in a plurality of stages without centralized precompiling, thereby improving the flexibility of precompiling, reducing the performance consumption brought by the centralized compiling of the hot point compiling units and improving the operation fluency of the electronic equipment.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for pre-compiling an application program, an electronic device, and a server.
Background
In the electronic equipment, the running efficiency of the application program can be improved to a certain extent in a way of compiling in advance. However, the related compiling method may cause the operation performance of the electronic device to be affected, and the user experience is reduced.
Disclosure of Invention
In view of the foregoing problems, the present application provides a method, an apparatus, an electronic device, and a server for pre-compiling an application program, so as to improve the foregoing problems.
In a first aspect, the present application provides a method for precompiling an application program, which is applied to a server, and the method includes: acquiring a plurality of hotspot compiling units corresponding to a target application program; dividing the plurality of hotspot compiling units into a plurality of parts, and respectively generating a first configuration file corresponding to each part to obtain a plurality of first configuration files, wherein each first configuration file comprises the hotspot compiling unit of the corresponding part, and different precoding stages corresponding to the hotspot compiling units included in different first configuration files are different; and sending the plurality of first configuration files to electronic equipment, so that the electronic equipment can perform precompilation on the hotspot compiling unit included in each first configuration file according to the precompilation stage corresponding to each first configuration file.
In a second aspect, the present application provides a method for pre-compiling an application program, applied to an electronic device, the method including: acquiring a plurality of first configuration files corresponding to a target application program sent by a server, wherein each first configuration file comprises a hot spot compiling unit of a corresponding part, and different pre-compiling stages corresponding to the hot spot compiling units included in the first configuration files are different; and performing precompilation on the hotspot compiling units included in each first configuration file according to the precompilation stage corresponding to each first configuration file.
In a third aspect, the present application provides an apparatus for application precompilation, running on a server, the apparatus comprising: the hot spot information acquisition unit is used for acquiring a plurality of hot spot compiling units corresponding to the target application program; the configuration file generation unit is used for dividing the hot spot compiling units into a plurality of parts, and respectively generating a first configuration file corresponding to each part to obtain a plurality of first configuration files, wherein each first configuration file comprises the hot spot compiling unit of the corresponding part, and different precompiling stages corresponding to the hot spot compiling units contained in different first configuration files are different; the configuration file distribution unit is used for sending the plurality of first configuration files to the electronic equipment so that the electronic equipment can perform precompilation on the hotspot compiling unit included in each first configuration file according to the precompilation stage corresponding to each first configuration file.
In a fourth aspect, the present application provides an apparatus for pre-compiling an application program, running on an electronic device, the apparatus including: the configuration file acquisition unit is used for acquiring a plurality of first configuration files corresponding to a target application program sent by a server, wherein each first configuration file comprises a hot spot compiling unit of a corresponding part, and different pre-compiling stages corresponding to the hot spot compiling units contained in the first configuration files are different; and the compiling unit is used for pre-compiling the hotspot compiling units included in each first configuration file according to the pre-compiling stage corresponding to each first configuration file.
In a fifth aspect, the present application provides an electronic device comprising one or more processors and a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the methods described above.
In a sixth aspect, the present application provides a computer-readable storage medium having program code stored therein, wherein the method described above is performed when the program code is executed.
According to the application program precompilation method, device, electronic equipment and server, after a plurality of hotspot compiling units corresponding to a target application program are obtained, the hotspot compiling units are divided into a plurality of parts, a plurality of first configuration files with different precompilation stages are respectively generated corresponding to each part, and the first configuration files are sent to the electronic equipment so that the electronic equipment can precompile the hotspot compiling units in each first configuration file according to the precompilation stage corresponding to each first configuration file. Therefore, by the mode, the hot point compiling units corresponding to the target application program can be precompiled in stages respectively in multiple stages without centralized precompiling, so that the precompiling flexibility is improved, the performance consumption caused by centralized compiling of the hot point compiling units is reduced, and the running smoothness of the electronic equipment is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram illustrating an operating environment of a method for pre-compiling an application according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating an operating environment of another method for pre-compiling an application according to an embodiment of the present application;
FIG. 3 is a diagram illustrating an operating environment of yet another method for pre-compiling an application according to an embodiment of the present application;
FIG. 4 is a flow chart illustrating a method for pre-compiling an application according to an embodiment of the present application;
FIG. 5 is a flow chart illustrating a method for application pre-compilation according to another embodiment of the present application;
FIG. 6 is a flow chart illustrating a method for application pre-compilation according to yet another embodiment of the present application;
FIG. 7 is a flow chart illustrating a method for application pre-compilation according to yet another embodiment of the present application;
FIG. 8 is a flow chart illustrating a method for application pre-compilation according to yet another embodiment of the present application;
FIG. 9 is a block diagram illustrating an apparatus for pre-compiling an application according to the present application;
FIG. 10 is a block diagram illustrating an alternative apparatus for application precompilation as proposed herein;
fig. 11 is a block diagram illustrating an electronic device for executing a method for pre-compiling an application according to an embodiment of the present application.
Fig. 12 is a storage unit for storing or carrying program code for implementing a method for precompiling an application program according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
With the development of the operation mode of the application program in the electronic device, the application program in the electronic device may be directly interpreted and executed by an Interpreter (Interpreter) during the operation, the number of calls and the number of cycles of each compiling unit are recorded during the execution, and when the number of calls and the number of cycles exceed a set threshold, the corresponding compiling unit is recorded as a hotspot compiling unit. The compiling unit may be understood as a function, method, or class (class) in the source code of the application program. Further, the hotspot compiling unit is identified, compiled by JIT (Just In Time), stored and generated into a profile file to record the information of the hotspot compiling unit. In this case, in some cases, the system Of the electronic device may scan the profile file and perform an AOT (Ahead Of Time) process for compilation.
However, the inventor researches the manner to find that the compiling process of the hotspot compiling unit is performed by focusing on a period of time when the related profile file runs, which causes the whole compiling process to consume much time. For example, in a related manner, in the process of acquiring an installation package of a downloaded application, an electronic device may acquire a profile file corresponding to the downloaded application at the same time, and in the process of installing the installation package, the profile file may be run to compile a compiling unit in the profile file, and after the compiling unit in the profile file completes compiling, the installation process of the application may be ended, and further, in the case of many compiling units that need compiling, the time consumption of the installation process may be long.
Therefore, the method, the device, the electronic device and the server for application precompiling of the application program are provided, so that a plurality of hot spot compiling units corresponding to the target application program can be precompiled in a staged manner in a plurality of stages respectively without centralized precompiling, the flexibility of precompiling is further improved, meanwhile, the performance consumption caused by centralized compiling of the hot spot compiling units is reduced, and the operation smoothness of the electronic device is improved.
A scenario related to the embodiment of the present application will be described below.
Referring to fig. 1, the scenario of fig. 1 includes a plurality of electronic devices 100 and a server 200. Wherein, a plurality of electronic devices 100 interact data with the server 200 through the network.
A target application is run on each of the plurality of electronic devices 100, and a configuration file (which may be the aforementioned profile file) 120 is correspondingly generated for the target application run on each of the electronic devices 100. In one manner, the electronic devices 100 may upload the configuration files 120 of the target application installed by themselves to the server 200, so that the server may obtain the configuration files 120 corresponding to the target application, further perform fusion processing on the configuration files 120, extract the hot spot compiling units included in the configuration files 120, divide the hot spot compiling units into a plurality of configuration files according to a plurality of configured compiling stages, and configure the configuration files into a file set 210 to be respectively returned to the electronic devices 100. It will be appreciated that a file collection 210 comprising a plurality of configuration files is returned here corresponding to each electronic device 100, respectively.
In addition, as shown in fig. 2, the server 220 may also directly send the program installation package 230 including the file set 210 and the installer 220 of the target application to the electronic device 130 that has not installed the target application, so that when the target application is installed, the electronic device 130 may run a certain first configuration file of the file set 210 to perform pre-compiling of the partial hotspot compiling unit.
In the environment shown in fig. 2, the server that collects the plurality of profiles 120 and processes the plurality of profiles 120 to obtain the plurality of profiles may be a single server or a server cluster. Moreover, the server that collects the plurality of configuration files 120 and processes the plurality of configuration files 120 to obtain the plurality of configuration files may be a different server from the server that subsequently issues the program installation package 230. For example, as shown in fig. 3, in the case shown in fig. 3, the server 200 is only used to execute the aforementioned collection of configuration files uploaded by the plurality of electronic devices 100, then send the collected configuration files to the server 201, then the server 201 executes the extraction of the plurality of hotspot compiling units included in the plurality of configuration files 120, then divide the plurality of hotspot compiling units into a plurality of configuration files according to a plurality of compiling stages of the configuration, and then configure the plurality of configuration files 210 into a file set 210 to be respectively returned to the plurality of electronic devices 100. Further, the server 201 may also send the generated file set 210 including the plurality of configuration files to the server 200, and the server 200 may further forward the file set to the plurality of electronic devices 100 (not shown in the figure). It should be noted that, the application distribution platform may be directly run in the server 201, and in this case, the server 201 may directly send the plurality of configuration files 210 to the electronic device 130 in which the target application program is not yet installed in the program installation package 230 in a configuration. If the application distribution platform operates independently, the server 201 may send the file set 210 including a plurality of configuration files to the application distribution platform, so that the application distribution platform sends the file set 210 to the electronic device 130, to which the target application program has not been installed, in the configuration in the program installation package 230.
Furthermore, in the following embodiments, the first configuration file may be a configuration file included in the file set 210, and the second configuration file may be the configuration file 120. The hot spot compiling unit in the newly generated configuration file 210 may be a hot spot compiling unit compiled by the server 200, or may be a hot spot compiling unit not yet running the compiling. In the case that the hotspot compiling unit in the configuration file newly generated by the server is a hotspot compiling unit which has not yet run the compiling, the electronic device receiving the newly generated configuration file may compile before running the target application program, or compile when installing the target application program.
The present disclosure will now be described with reference to specific embodiments.
Referring to fig. 4, the application provides a method for pre-compiling an application, which is applied to a server, and the method includes:
step S110: and acquiring a plurality of hot spot compiling units corresponding to the target application program.
In this embodiment, there may be multiple actual trigger servers to obtain multiple hotspot compiling units corresponding to the target application program.
As a mode, if it is detected that the version of the target application program is updated, a plurality of hotspot compiling units corresponding to the target application program are obtained. It is understood that when the version of the application program is updated, there may be more functions than the version before the update, or the implemented code is replaced for the same function, so as to better adapt to the target application program after the version update, when the version update of the target application program is detected, a plurality of hot-spot compiling units corresponding to the target application program may be obtained.
Alternatively, a plurality of hotspot compiling units corresponding to the target application program may be periodically obtained. It should be noted that the hot spot compiling units obtained in each execution of step S110 are only hot spot compiling units corresponding to the current stage, and are not necessarily hot spot compiling units that may be generated by all target application programs. For individual electronic devices, in the actual running process of the target application program, a hot spot compiling unit other than the hot spot compiling units acquired in step S110 may be generated, and the server periodically acquires the hot spot compiling units corresponding to the target application program, which may be understood as periodically collecting the hot spot compiling units corresponding to the target application program in the electronic devices used by different users, so as to obtain a plurality of hot spot compiling units, thereby achieving the purpose of rapidly acquiring a more comprehensive plurality of hot spot compiling units.
In this embodiment, there may be a plurality of ways to determine a plurality of hotspot compiling units which are subsequently divided.
As one mode, the plurality of hotspot compiling units may be obtained by collecting configuration files (profile files) corresponding to target applications running in different electronic devices. Alternatively, the hot spot compiling units corresponding to the target application program can be acquired by circularly running the target application program in the ART virtual machine.
Step S120: dividing the plurality of hotspot compiling units into a plurality of parts, and respectively generating a first configuration file corresponding to each part to obtain a plurality of first configuration files, wherein each first configuration file comprises the hotspot compiling units of the corresponding part, and different precoding stages corresponding to the hotspot compiling units included in different first configuration files are different.
Illustratively, the obtained plurality of hotspot compiling units include hotspot compiling units a to H. Optionally, the hot spot compiling units a to C may be divided into one part, the hot spot compiling units D to F may be divided into one part, and the hot spot compiling units G to H may be divided into one part. Then in this case, the first profile corresponding to the part of hotspot compiling units a to C includes hotspot compiling unit a, hotspot compiling unit B and hotspot compiling unit C. The first configuration file corresponding to the part of the hotspot compiling units D to F includes a hotspot compiling unit D, a hotspot compiling unit E and a hotspot compiling unit F. The first configuration file corresponding to the part of the hotspot compiling units G to H includes the hotspot compiling unit G and the hotspot compiling unit H.
Step S130: and sending the plurality of first configuration files to electronic equipment, so that the electronic equipment can perform precompilation on the hotspot compiling unit included in each first configuration file according to the precompilation stage corresponding to each first configuration file.
It should be noted that the server may send the plurality of first configuration files to the electronic device in various ways. Optionally, the server may send the plurality of first configuration files to the electronic device along with the installation package of the target application program when the electronic device initially downloads the target application program. In addition, when the target application program is updated by the electronic equipment, the update file can be sent to the electronic equipment.
It should be noted that, the server for executing the method for pre-compiling the application program provided in this embodiment may be the server 200 in fig. 1 and fig. 2, or may also be the server 201 in fig. 3.
According to the application program pre-compiling method, after a plurality of hot spot compiling units corresponding to a target application program are obtained, the hot spot compiling units are divided into a plurality of parts, a plurality of first configuration files with different corresponding pre-compiling stages are respectively generated corresponding to each part, and the first configuration files are sent to electronic equipment so that the electronic equipment can pre-compile the hot spot compiling units included in each first configuration file according to the pre-compiling stage corresponding to each first configuration file. Therefore, by the mode, the hot point compiling units corresponding to the target application program can be precompiled in stages respectively in multiple stages without centralized precompiling, so that the precompiling flexibility is improved, the performance consumption caused by centralized compiling of the hot point compiling units is reduced, and the running smoothness of the electronic equipment is improved.
Referring to fig. 5, the application provides a method for pre-compiling an application, which is applied to a server, and the method includes:
step S210: and acquiring a plurality of second configuration files corresponding to the target application program from a plurality of electronic devices, wherein the second configuration files are used for recording the hot spot compiling unit of the target application program.
It should be noted that a plurality of application programs may be run in the electronic device. Each application may be configured with an associated configuration file (profile file) during operation. The configuration file is used for recording a hot spot compiling unit of the application program in the running process. Illustratively, an application a, an application B, and an application C are installed in the electronic device. Application a may correspond to an assigned configuration file a, application B may correspond to an assigned configuration file B, and application C may correspond to an assigned configuration file C. In this case, a hot spot compiling unit of the application program a is recorded in the configuration file a, a hot spot compiling unit of the application program B is recorded in the configuration file B, and a hot spot compiling unit of the application program C is recorded in the configuration file C. The application programs installed for different electronic devices may be different or the same. For example, application a, application B, and application C may all be installed for a plurality of electronic devices.
It is understood that, the target application is an application to which the configuration file belongs and which will perform subsequent steps, and in the embodiment of the present application, the server may determine the target application in various ways.
In one mode, the server may use an application program with a large installation amount as a target application program. Optionally, the electronic device may periodically upload application installation information to the server, where the application installation information includes an application currently installed by the electronic device. The server may count the application installation information periodically uploaded by the plurality of electronic devices, and if it is detected that the installation amount of a certain application is greater than the installation threshold, the application with the installation amount greater than the installation threshold may be used as the target application.
For example, there are 100 electronic devices that upload application installation information to the server, and among 90 electronic devices, application a is installed, and in the case that the installation threshold is 80, the server may use application a as the target application. By the method, the server can timely optimize the operation efficiency of the application program with large installation amount.
Alternatively, the electronic device may determine the target application program in combination with the installation amount and the size of the corresponding configuration file. It should be noted that, different application programs have different sizes of configuration files due to different functions or different operating frequencies, and it is necessary for the electronic device to compile the hot spot compiling unit in the configuration file before the application program is operated, which consumes a certain amount of resources and time, so that for an application program with a smaller configuration file, it may be determined that the operating frequency of the application program is possibly lower, and the server may not process the configuration files to which the application programs with lower operating frequencies belong. Correspondingly, in this way, the application installation information reported by the electronic device may include, in addition to the installed applications, the size of the configuration file to which each application belongs. When the server detects that the number of configuration files of a certain application program in the plurality of electronic devices is larger than the threshold number, the same application program can be used as a target application program.
For example, there are 100 electronic devices that upload application installation information to the server, and among 90 electronic devices, application a is installed, so that each of the applications a installed in the 90 electronic devices has one configuration file (i.e., it can be understood that there are 90 configuration files). If the server identifies that 80 of its 90 configuration files are less than 1kb, then the server will not target application a if the installation threshold is 80, the specified threshold is 10kb, and the threshold number is 50. However, if the server recognizes that 60 (greater than the threshold number 50) of the 90 profiles all have a size of 11-12 kb (greater than the specified threshold of 10kb), then it can determine that application A is the target application.
Alternatively, the server may determine the target application based on the configuration information. In this manner, it may be determined which applications are targeted by a human configuration. For example, the server may take the application programs related to the application program installation information reported by the multiple electronic devices as the application programs to be selected, the operator may select one or more application programs from the application programs to be selected as the selected application programs, and correspondingly, the server stores the selected application programs in the configuration file, in which case, the server may take the application programs configured in the configuration file as the target application programs.
After determining the target application program based on the foregoing manner, the server may further use the configuration file to which the target application program belongs as the second configuration file. In this embodiment, the plurality of second configuration files corresponding to the target application may be understood as configuration files to which the same target application installed in the plurality of electronic devices belongs.
Step S220: and acquiring a plurality of hotspot compiling units from the plurality of second configuration file records.
As a mode, the server may directly deduplicate all the hotspot compiling units in the plurality of second configuration files to obtain the plurality of hotspot compiling units.
Step S230: dividing the plurality of hotspot compiling units into a plurality of parts, and respectively generating a first configuration file corresponding to each part to obtain a plurality of first configuration files, wherein each first configuration file comprises the hotspot compiling units of the corresponding part, and different precoding stages corresponding to the hotspot compiling units included in different first configuration files are different.
Step S240: and sending the plurality of first configuration files to electronic equipment, so that the electronic equipment can perform precompilation on the hotspot compiling unit included in each first configuration file according to the precompilation stage corresponding to each first configuration file.
It should be noted that, the server for executing the method for pre-compiling the application program provided in this embodiment may be the server 200 in fig. 1 and fig. 2, or may also be the server 201 in fig. 3.
According to the application program precompiling method, a plurality of hotspot compiling units corresponding to a target application program are acquired from a plurality of second configuration files by acquiring the second configuration files corresponding to the target application program from a plurality of electronic devices, the hotspot compiling units are divided into a plurality of parts, a plurality of first configuration files with different precompiling stages are respectively generated corresponding to each part, and the first configuration files are sent to the electronic devices so that the electronic devices can precompile the hotspot compiling units included in each first configuration file according to the precompiling stage corresponding to each first configuration file. Therefore, by the mode, the hot point compiling units corresponding to the target application program can be precompiled in stages respectively in multiple stages without centralized precompiling, so that the precompiling flexibility is improved, the performance consumption caused by centralized compiling of the hot point compiling units is reduced, and the running smoothness of the electronic equipment is improved. Moreover, the plurality of hotspot compiling units which are obtained at the beginning are obtained from the second configuration file related to the actual running state of the electronic equipment, so that the obtained plurality of hotspot compiling units can better fit the actual use habit of the user, the generated plurality of first configuration files are more adaptive to the actual use habit of the user, and the efficiency improvement effectiveness of the target application program is improved.
Referring to fig. 6, the application provides a method for pre-compiling an application, which is applied to a server, and the method includes:
step S310; and acquiring a plurality of hot spot compiling units corresponding to the target application program.
As one way, as shown in the foregoing embodiment, a plurality of hotspot compiling units can be obtained from a plurality of second profile records in the foregoing embodiment. And the times of occurrence of each hotspot compiling unit in the plurality of second configuration files can be acquired simultaneously. For example, the server collects a second configuration file a, a second configuration file B, and a second configuration file C corresponding to the same target application, where the second configuration file a, the second configuration file B, and the second configuration file C are obtained from different electronic devices respectively.
The second configuration file A comprises a hot spot compiling unit A, a hot spot compiling unit B and a hot spot compiling unit C, the second configuration file B comprises the hot spot compiling unit A, the hot spot compiling unit C and a hot spot compiling unit D, and the second configuration file C comprises the hot spot compiling unit A, the hot spot compiling unit B and the hot spot compiling unit E. In this case, the obtained plurality of hotspot compiling units include hotspot compiling unit a (occurring 3 times), hotspot compiling unit B (occurring 2 times), hotspot compiling unit C (occurring 2 times), hotspot compiling unit D (occurring 1 time), and hotspot compiling unit E (occurring 1 time).
Step S320: dividing the hot spot compiling unit related to the starting process of the target application program in the hot spot compiling units into a first part, and generating a first configuration file corresponding to the first part.
It should be noted that the application program may also involve compiling and running of related functional codes during the startup process. Then, a hotspot compiling unit related to the starting process of the application program in the plurality of hotspot compiling units can be divided into a first part, and a first configuration file corresponding to the first part is generated.
Step S330: and dividing the hot spot compiling units with the running times larger than a first threshold value into a second part, and generating a first configuration file corresponding to the second part.
It should be noted that the run-time referred to in this embodiment may be understood as the run-time based on the JIT manner, that is, the number of times that each hotspot compiling unit of the second configuration file a, the second configuration file B, and the second configuration file C appears in the foregoing example. For example, if the first threshold is 1, according to the second configuration file a, the second configuration file B, and the second configuration file C in the foregoing example, the hot spot compiling units divided into the second part include the hot spot compiling unit a (appearing 3 times), the hot spot compiling unit B (appearing 2 times), and the hot spot compiling unit C (appearing 2 times).
Step S340: dividing the hot spot compiling units with the running times larger than a second threshold value into a third part, and generating first configuration files corresponding to the third part, wherein the first threshold value is larger than the second threshold value, each first configuration file comprises the hot spot compiling units of the corresponding part, and different pre-compiling stages corresponding to the hot spot compiling units included in different first configuration files are different.
For example, if the second threshold is 2, the hot spot compiling units divided into the third part include the hot spot compiling unit a (occurring 3 times) according to the second configuration file a, the second configuration file B and the second configuration file C in the foregoing example.
Step S350: and sending the plurality of first configuration files to electronic equipment, so that the electronic equipment can perform precompilation on the hotspot compiling unit included in each first configuration file according to the precompilation stage corresponding to each first configuration file.
It is understood that the plurality of first profiles mentioned in the present embodiment refer to a plurality of first profiles obtained based on step S320, step S330, and step S340. Further, step S320, step S330, and step S340 may be performed in sequence or in parallel.
As a mode, configuring a pre-compiling stage corresponding to a hot spot compiling unit included in a first configuration file corresponding to the first part as an installation stage of the target application program; configuring a pre-compiling stage corresponding to a hotspot compiling unit included in a first configuration file corresponding to the second part to be a screen-off stage of the electronic equipment where the target application program is located; and configuring a precompilation stage corresponding to the hotspot compiling unit included in the first configuration file corresponding to the third part as an idle stage of the electronic equipment where the target application program is located.
It should be noted that the actual values of the first threshold and the second threshold referred to in this embodiment are only given by way of example, and the actual values of the first threshold and the second threshold may be determined according to actual conditions during operation, for example, the first threshold may be configured to be 5000, and the second threshold may be 15000. Moreover, the operation phases of the first configuration file corresponding to the second part and the first configuration file corresponding to the third part are not limited to the above-mentioned manner, for example, the first configuration file corresponding to the second part may be configured to be that the electronic device is in an idle phase, and the first configuration file corresponding to the third part may be configured to be that the electronic device is in a screen-off phase.
It should be noted that, the dividing operation referred to in this embodiment may be understood as that the server writes the hotspot compiling unit into the corresponding first configuration file. As one way, the server may generate a plurality of first configuration files according to a pre-partitioning rule, and the first configuration files configured differently operate at different stages. For example, a first configuration file a, a first configuration file B, and a first configuration file C may be generated. And configuring the first configuration file a to operate at an application program installation stage, if a certain hotspot compiling unit is divided into a first part (the precompiling stage corresponding to the hotspot compiling unit included in the first configuration file corresponding to the first part is the installation stage of the target application program) in the process of dividing the plurality of hotspot compiling units acquired in step S310, it may be understood that the certain hotspot compiling unit is written into the first configuration file a, and the division of other parts may also be understood in this manner, which is not described herein again.
And if the server sends the plurality of first configuration files to the electronic device along with the update file, in this case, the electronic device may run the first configuration file corresponding to the first part during the process of installing the update file.
According to the application program pre-compiling method, the plurality of hot point compiling units corresponding to the target application program can be pre-compiled in a staged mode respectively in a plurality of stages without centralized pre-compiling, so that the flexibility of pre-compiling is improved, meanwhile, the performance consumption caused by centralized compiling of the hot point compiling units is reduced, and the running smoothness of the electronic equipment is improved. In addition, in this embodiment, the hotspot compiling unit related to the starting of the target application program can be divided into a single part, and the hotspot compiling unit is configured to perform precompilation in the installation stage of the target application program, and the first configuration files corresponding to other parts are configured to be performed in the screen-off state or the idle state of the electronic device, so that the overall time consumption of the installation of the target application program is effectively reduced, the influence of precompilation operation on the running performance of the electronic device is also reduced to a greater extent, and the user experience is improved.
Referring to fig. 7, the application provides a method for pre-compiling an application, which is applied to a server, and the method includes:
step S410: and acquiring a plurality of hot spot compiling units corresponding to the target application program.
Step S420: dividing the hot spot compiling units with the code quantity smaller than a first code quantity threshold value in the hot spot compiling units into a first part, and generating a first configuration file corresponding to the first part.
Step S430: and dividing the hot spot compiling units with the code quantity not less than the first code quantity threshold value and less than the second code quantity threshold value into a second part, and generating a first configuration file corresponding to the second part.
Step S440: and dividing the hot spot compiling units of which the code quantity is not less than the second code quantity threshold value into a third part, and generating a first configuration file corresponding to the third part. Each first configuration file comprises a hot spot compiling unit of a corresponding part, and different pre-compiling stages corresponding to the hot spot compiling units included in the first configuration files are different.
Step S450: and sending the plurality of first configuration files to electronic equipment, so that the electronic equipment can perform precompilation on the hotspot compiling unit included in each first configuration file according to the precompilation stage corresponding to each first configuration file.
As a mode, configuring a pre-compiling stage corresponding to a hot spot compiling unit included in a first configuration file corresponding to the first part as an installation stage of the target application program; configuring a pre-compiling stage corresponding to a hotspot compiling unit included in a first configuration file corresponding to the second part to be a screen-off stage of the electronic equipment where the target application program is located; and configuring a precompilation stage corresponding to the hotspot compiling unit included in the first configuration file corresponding to the third part as an idle stage of the electronic equipment where the target application program is located.
According to the application program pre-compiling method, the plurality of hot point compiling units corresponding to the target application program can be pre-compiled in a staged mode respectively in a plurality of stages without centralized pre-compiling, so that the flexibility of pre-compiling is improved, meanwhile, the performance consumption caused by centralized compiling of the hot point compiling units is reduced, and the running smoothness of the electronic equipment is improved. In addition, in this embodiment, partial division may be performed according to the code amount of the hotspot compiling unit, and the portion with the minimum code amount of the hotspot compiling unit is configured to be precompiled in the target application program installation stage, and the first configuration files corresponding to the other portions are configured to be performed in the screen-off state or the idle state of the electronic device, so that the overall time consumption of target application program installation is effectively reduced, the influence of the precompiling operation on the operation performance of the electronic device is also reduced to a greater extent, and the user experience is improved.
Referring to fig. 8, a method for pre-compiling an application program provided by the present application is applied to an electronic device, and the method includes:
step S510: the method comprises the steps of obtaining a plurality of first configuration files corresponding to a target application program sent by a server, wherein each first configuration file comprises a hot spot compiling unit of a corresponding part, and different pre-compiling stages corresponding to the hot spot compiling units included in the first configuration files are different.
Step S520: and performing precompilation on the hotspot compiling units included in each first configuration file according to the precompilation stage corresponding to each first configuration file.
As a mode, the plurality of first configuration files include a first configuration file whose precompilation stage is an installation stage of the target application program, a first configuration file whose precompilation stage is a screen-off stage of the electronic device where the target application program is located, and a first configuration file whose precompilation stage is an idle stage of the electronic device where the target application program is located. In this way, if it is detected that the target application program is installed, the pre-compiling stage is operated as a first configuration file of the installation stage of the target application program; if the electronic equipment is detected to be in a screen-off state, running the pre-compiling stage as a first configuration file of the electronic equipment where the target application program is located in the screen-off state; and if the electronic equipment is detected to be in a charging state, running the pre-compiling stage to be a first configuration file of the electronic equipment in which the target application program is located in an idle stage.
In the electronic device, the configuration file is stored in a path designated by the system. Taking the android system as an example, in the android system, the configuration file of the application program is stored in the path/data/misc/profiles. Then as a way of adapting to multiple profiles, the electronic device may be configured with multiple storage areas further configured under the specified path of storing the profiles, and configure one storage area for storing the profiles of the same compilation stage. Illustratively, in the foregoing embodiment, the compiling stages corresponding to the plurality of first configuration files include an application program installing stage, a screen resting stage, and an idle stage. Then, correspondingly, under the specified path, a first storage area may be configured to store the first configuration file pre-compiled in the application program installation stage corresponding to each application program, a second storage area is configured to store the first configuration file pre-compiled in the screen turning stage corresponding to each application program, and a third storage area is configured to store the first configuration file pre-compiled in the idle stage corresponding to each application program. Therefore, the electronic equipment can directly read the configuration files corresponding to the compiling stages through different storage areas under the appointed path, and the problems that the time consumption for searching is long and the management is inconvenient due to the fact that the first configuration files of all the compiling stages of each application program are placed under one path are solved.
Referring to fig. 9, an apparatus 600 for pre-compiling an application provided by the present application, running on a server, includes:
the hotspot information obtaining unit 610 is configured to obtain a plurality of hotspot compiling units corresponding to the target application program.
As a manner, the hotspot information obtaining unit 610 is specifically configured to obtain a plurality of hotspot compiling units corresponding to the target application program if it is detected that the version of the target application program is updated.
As a mode, the hotspot information obtaining unit 610 is specifically configured to obtain a plurality of second configuration files corresponding to a target application program from a plurality of electronic devices, where the second configuration files are used to record a hotspot compiling unit of the target application program; and acquiring a plurality of hotspot compiling units from the plurality of second configuration file records.
The configuration file generating unit 620 is configured to divide the plurality of hotspot compiling units into a plurality of parts, and generate a first configuration file corresponding to each part, respectively, to obtain a plurality of first configuration files, where each first configuration file includes a hotspot compiling unit of the corresponding part, and different precoding stages corresponding to hotspot compiling units included in different first configuration files are different.
As a manner, the configuration file generating unit 620 is specifically configured to divide a hotspot compiling unit related to the target application program starting process in the plurality of hotspot compiling units into a first part, and generate a first configuration file corresponding to the first part; dividing the hot spot compiling units with the running times larger than a first threshold value into a second part, and generating a first configuration file corresponding to the second part; dividing the hot spot compiling units with the running times larger than a second threshold value into a third part, and generating a first configuration file corresponding to the third part; wherein the first threshold is greater than the second threshold.
As another way, the configuration file generating unit 620 is specifically configured to divide a hotspot compiling unit with a code amount smaller than a first code amount threshold value among the hotspot compiling units into a first part, and generate a first configuration file corresponding to the first part; dividing hotspot compiling units of which the code quantity is not less than the first code quantity threshold and less than the second code quantity threshold into a second part, and generating a first configuration file corresponding to the second part; and dividing the hot spot compiling units of which the code quantity is not less than the second code quantity threshold value into a third part, and generating a first configuration file corresponding to the third part.
Optionally, the configuration file generating unit 620 is further configured to configure a pre-compiling stage corresponding to the hotspot compiling unit included in the first configuration file corresponding to the first part as an installation stage of the target application program; configuring a pre-compiling stage corresponding to a hotspot compiling unit included in a first configuration file corresponding to the second part to be a screen-off stage of the electronic equipment where the target application program is located; and configuring a precompilation stage corresponding to the hotspot compiling unit included in the first configuration file corresponding to the third part as an idle stage of the electronic equipment where the target application program is located.
The configuration file distribution unit 630 is configured to send the plurality of first configuration files to an electronic device, so that the electronic device performs precompilation on the hotspot compiling unit included in each first configuration file according to the precompilation stage corresponding to each first configuration file.
Referring to fig. 10, an apparatus 700 for pre-compiling an application provided by the present application, running on an electronic device, includes:
the configuration file obtaining unit 710 is configured to obtain a plurality of first configuration files corresponding to a target application program sent by a server, where each of the first configuration files includes a hot spot compiling unit corresponding to a corresponding portion, and different pre-compiling stages corresponding to the hot spot compiling units included in different first configuration files are different.
A compiling unit 720, configured to perform precompilation on the hotspot compiling units included in each first configuration file according to the precompilation stage corresponding to each first configuration file.
As a mode, the plurality of first configuration files include a first configuration file whose precompilation stage is an installation stage of the target application program, a first configuration file whose precompilation stage is a screen-off stage of the electronic device where the target application program is located, and a first configuration file whose precompilation stage is an idle stage of the electronic device where the target application program is located. In this manner, the compiling unit 720 is specifically configured to, if it is detected that the target application program is installed, run the first configuration file whose precompilation stage is the installation stage of the target application program; if the electronic equipment is detected to be in a screen-off state, running the pre-compiling stage as a first configuration file of the electronic equipment where the target application program is located in the screen-off state; and if the electronic equipment is detected to be in a charging state, running the pre-compiling stage to be a first configuration file of the electronic equipment in which the target application program is located in an idle stage.
It should be noted that, in the present application, it is a prior art that can be specifically applied to how to encode audio data according to the audio encoding type, and the present application will not be described in detail.
An electronic device provided by the present application will be described below with reference to fig. 11.
Referring to fig. 11, based on the method and the apparatus for pre-compiling an application program, another electronic device 200 capable of performing the method for pre-compiling an application program is further provided in the embodiment of the present application. The electronic device 200 includes one or more processors 102 (only one shown), memory 104, and network module 106 coupled to each other. The memory 104 stores programs that can execute the content of the foregoing embodiments, and the processor 102 can execute the programs stored in the memory 104.
The Memory 104 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 104 may be used to store instructions, programs, code sets, or instruction sets. The memory 104 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
The network module 106 is configured to receive and transmit electromagnetic waves, and achieve interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, such as a wireless access point. The network module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The network module 106 may also be used as a network adapter for the electronic device 200 to access the network directly through a line connection. The network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network.
Referring to fig. 12, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 800 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 800 includes a non-volatile computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 810 may be compressed, for example, in a suitable form.
In summary, after obtaining a plurality of hotspot compiling units corresponding to a target application program, the application program precompiling method, device, electronic device and server divide the hotspot compiling units into a plurality of parts, generate a plurality of first configuration files corresponding to different precompiling stages respectively corresponding to each part, and send the first configuration files to the electronic device, so that the electronic device precompiles the hotspot compiling units included in each first configuration file according to the precompiling stage corresponding to each first configuration file. Therefore, by the mode, the hot point compiling units corresponding to the target application program can be precompiled in stages respectively in multiple stages without centralized precompiling, so that the precompiling flexibility is improved, the performance consumption caused by centralized compiling of the hot point compiling units is reduced, and the running smoothness of the electronic equipment is improved.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.
Claims (12)
1. A method for application precompilation, applied to a server, the method comprising:
acquiring a plurality of hotspot compiling units corresponding to a target application program;
dividing the plurality of hotspot compiling units into a plurality of parts, and respectively generating a first configuration file corresponding to each part to obtain a plurality of first configuration files, wherein each first configuration file comprises the hotspot compiling unit of the corresponding part, and different precoding stages corresponding to the hotspot compiling units included in different first configuration files are different;
and sending the plurality of first configuration files to electronic equipment, so that the electronic equipment can perform precompilation on the hotspot compiling unit included in each first configuration file according to the precompilation stage corresponding to each first configuration file.
2. The method according to claim 1, wherein the step of obtaining a plurality of hotspot compiling units corresponding to the target application program comprises:
acquiring a plurality of second configuration files corresponding to a target application program from a plurality of electronic devices, wherein the second configuration files are used for recording a hot spot compiling unit of the target application program;
and acquiring a plurality of hotspot compiling units from the plurality of second configuration file records.
3. The method according to claim 1, wherein the step of dividing the hot spot compiling units into a plurality of parts and generating a first configuration file corresponding to each part to obtain a plurality of first configuration files comprises:
dividing a hotspot compiling unit related to the starting process of the target application program in the plurality of hotspot compiling units into a first part, and generating a first configuration file corresponding to the first part;
dividing the hot spot compiling units with the running times larger than a first threshold value into a second part, and generating a first configuration file corresponding to the second part;
dividing the hot spot compiling units with the running times larger than a second threshold value into a third part, and generating a first configuration file corresponding to the third part;
wherein the first threshold is greater than the second threshold.
4. The method according to claim 1, wherein the step of dividing the hot spot compiling units into a plurality of parts and generating a first configuration file corresponding to each part to obtain a plurality of first configuration files comprises:
dividing hotspot compiling units with code quantity smaller than a first code quantity threshold value in the plurality of hotspot compiling units into a first part, and generating a first configuration file corresponding to the first part;
dividing hotspot compiling units of which the code quantity is not less than the first code quantity threshold and less than the second code quantity threshold into a second part, and generating a first configuration file corresponding to the second part;
and dividing the hot spot compiling units with the code quantity not less than the second code quantity threshold value into a third part, and generating a first configuration file corresponding to the third part.
5. The method of claim 3 or 4, further comprising:
configuring a pre-compiling stage corresponding to a hot spot compiling unit included in a first configuration file corresponding to the first part as an installation stage of the target application program;
configuring a pre-compiling stage corresponding to a hotspot compiling unit included in a first configuration file corresponding to the second part to be a screen-off stage of the electronic equipment where the target application program is located;
and configuring a precompilation stage corresponding to the hotspot compiling unit included in the first configuration file corresponding to the third part as an idle stage of the electronic equipment where the target application program is located.
6. The method of claim 1, wherein the step of obtaining a plurality of hotspot compiling units corresponding to the target application program comprises:
and if the target application program version is detected to be updated, acquiring a plurality of hot spot compiling units corresponding to the target application program.
7. A method for pre-compiling an application program, which is applied to an electronic device, the method comprising:
acquiring a plurality of first configuration files corresponding to a target application program sent by a server, wherein each first configuration file comprises a hot spot compiling unit of a corresponding part, and different pre-compiling stages corresponding to the hot spot compiling units included in the first configuration files are different;
and performing precompilation on the hotspot compiling units included in each first configuration file according to the precompilation stage corresponding to each first configuration file.
8. The method according to claim 7, wherein the plurality of first configuration files include a first configuration file whose precompilation stage is an installation stage of the target application program, a first configuration file whose precompilation stage is a screen-off stage of the electronic device where the target application program is located, and a first configuration file whose precompilation stage is an idle stage of the electronic device where the target application program is located; the step of performing precompilation on the hotspot compiling unit included in each first configuration file according to the precompilation stage corresponding to each first configuration file comprises:
if the target application program is detected to be installed, operating a first configuration file of which the pre-compiling stage is the installation stage of the target application program;
if the electronic equipment is detected to be in a screen-off state, running the pre-compiling stage as a first configuration file of the electronic equipment where the target application program is located in the screen-off state;
and if the electronic equipment is detected to be in a charging state, running the pre-compiling stage to be a first configuration file of the electronic equipment in which the target application program is located in an idle stage.
9. An apparatus for application precompilation, running on a server, comprising:
the hot spot information acquisition unit is used for acquiring a plurality of hot spot compiling units corresponding to the target application program;
the configuration file generation unit is used for dividing the hot spot compiling units into a plurality of parts, and respectively generating a first configuration file corresponding to each part to obtain a plurality of first configuration files, wherein each first configuration file comprises the hot spot compiling unit of the corresponding part, and different precompiling stages corresponding to the hot spot compiling units contained in different first configuration files are different;
the configuration file distribution unit is used for sending the plurality of first configuration files to the electronic equipment so that the electronic equipment can perform precompilation on the hotspot compiling unit included in each first configuration file according to the precompilation stage corresponding to each first configuration file.
10. An apparatus for application precompilation, operable on an electronic device, the apparatus comprising:
the configuration file acquisition unit is used for acquiring a plurality of first configuration files corresponding to a target application program sent by a server, wherein each first configuration file comprises a hot spot compiling unit of a corresponding part, and different pre-compiling stages corresponding to the hot spot compiling units contained in the first configuration files are different;
and the compiling unit is used for pre-compiling the hotspot compiling units included in each first configuration file according to the pre-compiling stage corresponding to each first configuration file.
11. A server, comprising one or more processors and memory;
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-6.
12. A computer-readable storage medium, having a program code stored therein, wherein the program code when executed by a processor performs the method of any of claims 1-6.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911252047.6A CN113031953A (en) | 2019-12-09 | 2019-12-09 | Application program pre-compiling method and device, electronic equipment and server |
PCT/CN2020/133403 WO2021115178A1 (en) | 2019-12-09 | 2020-12-02 | Application program pre-compilation method and apparatus, server and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911252047.6A CN113031953A (en) | 2019-12-09 | 2019-12-09 | Application program pre-compiling method and device, electronic equipment and server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113031953A true CN113031953A (en) | 2021-06-25 |
Family
ID=76329516
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911252047.6A Pending CN113031953A (en) | 2019-12-09 | 2019-12-09 | Application program pre-compiling method and device, electronic equipment and server |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113031953A (en) |
WO (1) | WO2021115178A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113703771A (en) * | 2021-08-23 | 2021-11-26 | 八方电气(苏州)股份有限公司 | Communication program module, application and pre-compiling management method of communication program module |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118069154B (en) * | 2024-04-22 | 2024-09-17 | 荣耀终端有限公司 | Application compiling control method and related equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106775893A (en) * | 2016-12-30 | 2017-05-31 | 北京小米移动软件有限公司 | To the method and device of program precompile |
US20170208150A1 (en) * | 2016-01-20 | 2017-07-20 | Google Inc. | Methods and apparatus to selectively provide cached and presently compiled applications |
CN107168749A (en) * | 2017-05-31 | 2017-09-15 | 腾讯科技(深圳)有限公司 | A kind of Compilation Method, device, equipment and computer-readable recording medium |
CN109460235A (en) * | 2018-10-09 | 2019-03-12 | 珠海格力电器股份有限公司 | Configuration software compiling method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109960507B (en) * | 2017-12-14 | 2021-06-08 | Oppo广东移动通信有限公司 | Compiling optimization method and device, storage medium, intelligent terminal and server |
-
2019
- 2019-12-09 CN CN201911252047.6A patent/CN113031953A/en active Pending
-
2020
- 2020-12-02 WO PCT/CN2020/133403 patent/WO2021115178A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170208150A1 (en) * | 2016-01-20 | 2017-07-20 | Google Inc. | Methods and apparatus to selectively provide cached and presently compiled applications |
CN108292209A (en) * | 2016-01-20 | 2018-07-17 | 谷歌有限责任公司 | The method and apparatus that caching and the application currently compiled are selectively provided |
CN106775893A (en) * | 2016-12-30 | 2017-05-31 | 北京小米移动软件有限公司 | To the method and device of program precompile |
CN107168749A (en) * | 2017-05-31 | 2017-09-15 | 腾讯科技(深圳)有限公司 | A kind of Compilation Method, device, equipment and computer-readable recording medium |
CN109460235A (en) * | 2018-10-09 | 2019-03-12 | 珠海格力电器股份有限公司 | Configuration software compiling method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113703771A (en) * | 2021-08-23 | 2021-11-26 | 八方电气(苏州)股份有限公司 | Communication program module, application and pre-compiling management method of communication program module |
Also Published As
Publication number | Publication date |
---|---|
WO2021115178A1 (en) | 2021-06-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111061484B (en) | Code compiling method, device, server, user terminal and readable medium | |
CN111078318B (en) | Processing method, device and system of configuration file and storage medium | |
CN109960507B (en) | Compiling optimization method and device, storage medium, intelligent terminal and server | |
CN110727697B (en) | Data processing method and device, storage medium and electronic device | |
CN105763602A (en) | Data request processing method, server and cloud interactive system | |
CN112948026A (en) | Hotspot code processing method and device, server, electronic equipment and storage medium | |
CN107807852B (en) | Application program performance control method, device and computer readable storage medium | |
CN111061483B (en) | Compiling optimization method and device and electronic equipment | |
WO2021115178A1 (en) | Application program pre-compilation method and apparatus, server and storage medium | |
CN110941424A (en) | Compiling parameter optimization method and device and electronic equipment | |
CN105511962A (en) | Rendering method and device | |
CN112667405B (en) | Information processing method, device, equipment and storage medium | |
US20190266094A1 (en) | Data Prefetching Method, Apparatus, And System | |
CN112988169A (en) | Application installation method and device, terminal equipment, server and storage medium | |
CN110599581B (en) | Image model data processing method and device and electronic equipment | |
WO2021129489A1 (en) | Application precompiling method and apparatus, electronic device, and storage medium | |
CN113126994A (en) | Hotspot code processing method and device, electronic equipment and storage medium | |
CN104182532A (en) | Terminal file cleaning method and device and terminal | |
CN106550384A (en) | base station batch upgrading method and device | |
CN113010172B (en) | Processing method, device and system of configuration file and storage medium | |
CN106817383B (en) | Access cycle management method and device based on data statistics reporting | |
CN112799690B (en) | Information processing method, apparatus, device and storage medium | |
CN105657473A (en) | Data processing method and device | |
CN112783500A (en) | Compiling optimization information generation method and device and electronic equipment | |
CN113032035B (en) | Configuration file processing method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20240816 |
|
AD01 | Patent right deemed abandoned |