CN112799690A - Information processing method, device, equipment and storage medium - Google Patents

Information processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN112799690A
CN112799690A CN202110136267.3A CN202110136267A CN112799690A CN 112799690 A CN112799690 A CN 112799690A CN 202110136267 A CN202110136267 A CN 202110136267A CN 112799690 A CN112799690 A CN 112799690A
Authority
CN
China
Prior art keywords
application program
target application
configuration file
target
common code
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
Application number
CN202110136267.3A
Other languages
Chinese (zh)
Inventor
洪乃波
高庆操
赵子涵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202110136267.3A priority Critical patent/CN112799690A/en
Publication of CN112799690A publication Critical patent/CN112799690A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/443Optimisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The embodiment of the application discloses an information processing method, an information processing device, information processing equipment and a storage medium, wherein when an installation package of a target application program is obtained, a configuration file corresponding to the target application program is also obtained, and the configuration file is used for marking a common code segment of the target application program; installing a target application program based on the operating system and the installation package; wherein the target application comprises an original configuration file; replacing the original configuration file with a configuration file in the process of installing the target application program so as to store the configuration file and the target application program in a correlation manner; and if the operating system meets the optimization opportunity, carrying out optimization processing based on the configuration file so as to optimize the execution speed of the target application program. The problem that the optimization of the application program cannot be realized at the initial stage of the application program installation in the prior art is solved.

Description

Information processing method, device, equipment and storage medium
Technical Field
The present application relates to the field of information processing technologies, and in particular, to an information processing method and apparatus, an electronic device, and a storage medium.
Background
In order to improve the operating efficiency of the application (for convenience of description, denoted as the application P) in the mobile device (e.g., a smart phone, a tablet computer, etc.), an alternative implementation manner is that the mobile device optimizes the execution speed of the application P. In some scenarios, the mobile device (denoted as mobile device S for convenience of description) optimizes the execution speed of the application P by: and referring to a configuration file corresponding to the application program P (the configuration file is determined by the mobile device S according to the use condition of the application program P in the mobile device S), determining an object to be optimized in the application program P through the configuration file, and optimizing the object to be optimized in the application program P to achieve the aim of optimizing the execution speed of the application program P. However, at the initial stage of installation of the application program P, since the usage data of the user is small, the configuration file cannot be obtained, and thus optimization of the application program P cannot be realized.
Disclosure of Invention
The application aims to provide an information processing method, an information processing device, an electronic device and a storage medium, and the method comprises the following technical scheme:
an information processing method is applied to a target mobile device, and comprises the following steps:
obtaining an installation package of a target application program and a configuration file corresponding to the target application program, wherein the configuration file is used for marking a common code segment of the target application program;
installing the target application program based on an operating system and the installation package; wherein the target application comprises an original configuration file;
replacing the original configuration file with the configuration file during installation of the target application program so as to store the configuration file in association with the target application program;
and if the operating system meets the optimization opportunity, carrying out optimization processing based on the configuration file so as to optimize the execution speed of the target application program.
Preferably, the obtaining of the installation package of the target application and the configuration file corresponding to the target application includes:
obtaining an installation package of a target application program from a network server;
and if the target application program belongs to an application program white list, acquiring a configuration file corresponding to the target application program from the network server in the process of acquiring the installation package of the target application program.
In the above method, preferably, the configuration file corresponding to the target application program is generated by the network server according to the target application program in the application program white list and counting usage configuration files from a plurality of different mobile devices; the use configuration file is used for representing common code segments of the target application program in the use process, wherein the common code segments are marked and accumulated by the mobile equipment corresponding to the use configuration file.
In the above method, preferably, the configuration file corresponding to the target application is determined by the network server counting the number of times of marking each common code segment marked by using the configuration file from a plurality of different mobile devices, and according to the number of times of marking each common code segment; the marking times of each common code segment marked by the configuration file corresponding to the target application program are all larger than the marking times of any one of the common code segments of the target application program.
The above method, preferably, further comprises:
marking and accumulating the common code segments of the target application program in the using process to obtain a use configuration file corresponding to the target mobile equipment;
and if any common code segment marked by using the configuration file corresponding to the target mobile equipment is not in the configuration file, updating the configuration file so as to increase the any common code segment in the common code segment marked by the configuration file.
The above method, preferably, further comprises:
and under the condition that the target application program is located in an application program white list, if the used time length of the target application program in the target mobile equipment is greater than a threshold value, uploading the use configuration file of the target application program to a network server.
Preferably, the above method, if the operating system meets the optimization timing, performing optimization processing based on the configuration file to optimize the execution speed of the target application program, includes:
and if the operating system meets the optimization opportunity, performing optimization processing based on the configuration file to perform single-thread scheduling corresponding to the optimization opportunity so as to optimize the execution speed of the target application program and reduce the power consumption of the target mobile equipment.
An information processing apparatus comprising:
the system comprises an obtaining module, a judging module and a judging module, wherein the obtaining module is used for obtaining an installation package of a target application program and a configuration file corresponding to the target application program, and the configuration file is used for marking a common code segment of the target application program;
an installation module for installing the target application program based on an operating system and the installation package; wherein the target application comprises an original configuration file;
the replacing module is used for replacing the original configuration file with the configuration file in the process of installing the target application program so as to store the configuration file and the target application program in a correlation mode;
and if the operating system meets the optimization opportunity, carrying out optimization processing based on the configuration file so as to optimize the execution speed of the target application program.
An information processing apparatus comprising:
a memory for storing a computer program;
a processor for calling and executing the computer program to realize the steps of the information processing method.
A readable storage medium on which a computer program is stored, which, when executed by a processor, implements the steps of the information processing method as described in any one of the above.
According to the scheme, when the installation package of the target application program is obtained, the configuration file corresponding to the target application program is also obtained, and the configuration file is used for marking the common code segments of the target application program; installing a target application program based on the operating system and the installation package; wherein the target application comprises an original configuration file; replacing the original configuration file with a configuration file in the process of installing the target application program so as to store the configuration file and the target application program in a correlation manner; and if the operating system meets the optimization opportunity, carrying out optimization processing based on the configuration file so as to optimize the execution speed of the target application program. The configuration file for marking the common code segments of the target application program is obtained in the process of installing the target application program, so that the target application program can be optimized in the process of installing the application program or in the early use stage (namely the initial installation stage) after the application program is installed, and the problem that the application program cannot be optimized in the initial installation stage of the application program in the prior art is solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described 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 the drawings without creative efforts.
Fig. 1 is a flowchart of an implementation of an information processing method according to an embodiment of the present application;
fig. 2 is a flowchart of an implementation of obtaining an installation package of a target application and a configuration file corresponding to the target application according to the embodiment of the present application;
FIG. 3 is a flow chart of an optimization scheme provided by an embodiment of the present application;
fig. 4 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present application;
fig. 5 is a block diagram of a hardware structure of an information processing apparatus according to an embodiment of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in other sequences than described or illustrated herein.
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 inventive step, are within the scope of the present disclosure.
The information processing method provided by the application can be used in a mobile device (for convenience of distinguishing, the mobile device is recorded as a target mobile device), the target mobile device can install the application program, and the installed application program can be optimized.
An implementation flowchart of the information processing method provided in the embodiment of the present application is shown in fig. 1, and may include:
step S101: the method comprises the steps of obtaining an installation package of an application program (marked as a target application program for the convenience of distinguishing) and a configuration file corresponding to the target application program, wherein the configuration file is used for marking common code segments of the target application program.
The target application may be any application that may be installed in the target mobile device.
Since the target application may be installed in the plurality of mobile devices, and the target application may have been installed in several other mobile devices and used by the user before being installed in the target mobile device, the common code segment of the target application marked by the configuration file may be the common code segment of the target application determined according to the usage process of the target application in the plurality of mobile devices.
A code fragment of a target application refers to a class or method in the code that implements the target application. The common code fragments of the target application refer to the common classes or methods of the target application.
Step S102: installing a target application program based on the operating system and the installation package; wherein the target application includes the original configuration file.
The original configuration file is an empty file, and in the prior art, the original configuration file is used for marking the common code segment of the target application program in the target mobile device during the process that the user of the target mobile device uses the target application program, and can be used for optimizing the execution speed of the target application program.
Step S103: and replacing the original configuration file with the configuration file in the process of installing the target application program so as to store the configuration file and the target application program in a related mode.
In this embodiment of the application, instead of marking the common code segment of the target application program in the target mobile device by using the original configuration file, the configuration file marked with the common code segment of the target application program, which is obtained in step S101, is used to replace the original configuration file in the target application program, so that the common code segment of the target application program in the target mobile device can be marked in the process that the user of the target mobile device uses the target application program based on the configuration file marked with the common code segment of the target application program.
And if the operating system meets the optimization opportunity, carrying out optimization processing based on the configuration file so as to optimize the execution speed of the target application program.
The optimization opportunities may include, but are not limited to, any of the following: at startup, at application installation, at system update, at charging and idling, etc. The optimization is performed at these occasions without affecting the running of foreground applications in the mobile device.
Optionally, performing optimization processing based on the configuration file may include: compiling at least part of the common code segments of the target application marked by the configuration file into machine code easy to execute. For example, the code of the application program is usually stored in the form of a dex file, and the dex file can be compiled to obtain an oat file that is easy to be executed by a processor (usually a virtual machine). The virtual machine executes the oat file faster than the dex file, so that the execution speed of the target application program can be improved.
According to the information processing method provided by the embodiment of the application, the configuration file used for marking the common code segments of the target application program is obtained in the process of installing the target application program, namely, based on the information processing method, the configuration file of the application program is not empty any more after the application program is installed, so that the target application program can be optimized in the process of installing the application program or in the early use stage (namely the initial installation stage) after the application program is installed, and the problem that the application program cannot be optimized in the initial installation stage of the application program in the prior art is solved.
In an optional embodiment, an implementation flowchart of obtaining the installation package of the target application and the configuration file corresponding to the target application is shown in fig. 2, and may include:
step S201: an installation package of the target application is obtained from the network server.
Alternatively, the network server may be a server corresponding to the application center, or may be a server of a provider of the target application program.
Step S202: and if the target application program belongs to the application program white list, acquiring the configuration file corresponding to the target application program from the network server in the process of acquiring the installation package of the target application program.
Optionally, the user usage of applications that are in the application white list is higher than the user usage of applications that are not in the application white list.
Optionally, the application white list may be formed by collecting user usage behavior data of each application in the plurality of applications, and screening a preset number of applications with the highest user usage rate from the plurality of applications according to the user usage behavior data.
The user usage behavior data of the application (denoted as application a for convenience of description) may include, but is not limited to: the time length and frequency of the application program A used by each user, the user conversion rate and the retention rate of the application program A and the like.
Optionally, the user usage rate of the application program a may be calculated according to a preset association relationship between the user usage behavior data and the user usage rate of the application program. In the incidence relation between the user usage behavior data and the user usage rate of the application program, the user usage rate is positively correlated with the duration and frequency of the application program used by each user, and is positively correlated with the user conversion rate and retention rate of the application program. That is to say, for the application a, the longer the duration that each user uses the application a, the higher the user usage rate of the application a, the higher the frequency that each user uses the application a, the higher the user usage rate of the application a, the higher the user conversion rate of the application a, the higher the user usage rate of the application a, the higher the user retention rate of the application a, and the higher the user usage rate of the application a.
That is to say, in the present application, the configuration file corresponding to the target application program is only obtained if the target application program belongs to the application program white list, so that it can be ensured that the common code segments marked by the configuration file after the target application program is installed are closer to the actual use condition of the target application program by the user.
Optionally, the application white list may be generated by a cloud device, and the cloud device may be the network server or may not be the network server, that is, a server independent from the network server. The mobile device can upload user behavior data such as installation information, use duration, use frequency and the like of the mobile device to the cloud device, and the cloud device obtains the use duration and the use frequency of each application program, the user conversion rate and the retention rate and the like of each application program according to statistical analysis of the information uploaded by each mobile device. And then determining the user utilization rate of each application program based on the user utilization behavior data of each application program.
Under the condition that the cloud device and the network server are mutually independent servers, the application program white list can be stored in the cloud device, and can also be stored in the network server after being downloaded from the cloud device by the network server.
Optionally, the mobile device may download the application white list from the cloud device and store the application white list locally on the mobile device.
Optionally, in the process that the target mobile device obtains the installation package of the target application from the network server, the network server may query the locally stored application white list to determine whether the target application belongs to the application white list, or the target mobile device sends a query request to the network server to trigger the network server to query the locally stored application white list to determine whether the target application belongs to the application white list, or the network server does not locally store the application white list, but requests the cloud device to query whether the target application belongs to the application white list. And after the network server determines that the target application program belongs to the application program white list, the configuration file corresponding to the target application program is issued to the target mobile equipment.
Optionally, in the process that the target mobile device obtains the installation package of the target application program from the network server, the target mobile device may query a locally stored application program white list, and when it is determined that the target application program belongs to the application program white list, download the configuration file corresponding to the target application program from the network server.
In an optional embodiment, the configuration file corresponding to the target application program is generated by the network server according to the target application program in the application program white list and counting the use configuration files from a plurality of different mobile devices; the use configuration file is used for representing common code segments of the target application program which are marked and accumulated by the mobile equipment corresponding to the use configuration file in the use process.
That is, for any application in the application white list (for convenience of description, referred to as application B), the usage profile of application B is determined according to the usage of application B by the plurality of different mobile devices in which application B is installed. For example, a plurality of different mobile devices for installing the application B mark and accumulate common code segments of the application B in the use process to obtain a use configuration file corresponding to the application B, the use configuration file corresponding to the application B in each mobile device for installing the application B represents the common code segment of the application B in the mobile device for installing the application B, and the plurality of different mobile devices for installing the application B upload the obtained use configuration files to the network server, so that the network server can obtain the use configuration files from the plurality of different mobile devices.
Optionally, the network server may count the number of times of marking each common code segment marked by the configuration file from a plurality of different mobile devices, and determine the configuration file corresponding to the target application program according to the number of times of marking each common code segment; the marking times of each common code segment marked by the configuration file corresponding to the target application program are larger than the marking times of any one of the common code segments of the target application program. Optionally, the common code segments with the marking times larger than the time threshold are marked in the configuration file corresponding to the target application program, or the common code segments with the marking times before the sequencing of M are marked in the configuration file corresponding to the target application program.
In an optional embodiment, the information processing method provided in the embodiment of the present application may further include:
and marking and accumulating the common code segments of the target application program in the using process to obtain a use configuration file corresponding to the target mobile equipment.
If any common code segment (for convenience of description, denoted as a common code segment C) marked by the configuration file corresponding to the target mobile device is not in the configuration file corresponding to the target application program, the configuration file corresponding to the target application program is updated, so that the common code segment C is added to the common code segment marked by the configuration file corresponding to the target application program.
That is to say, in addition to the configuration file associated with the target application program when the target application program is installed, in the use process of the target application program, the present application marks and accumulates the actual commonly used code segments of the target application program in the target mobile device, and adds the information associated with the commonly used code segment C in the configuration file corresponding to the target application program, where the information represents the commonly used code segment C, so that the commonly used code segment marked by the configuration file corresponding to the target application program includes the commonly used code segment determined according to the use condition of the target application program by a plurality of different mobile devices, and also includes the commonly used code segment determined by the long-term use condition of the target application program in the target mobile device.
By marking the common code segments determined by the long-term use condition of the target application program in the target mobile equipment into the configuration file, the execution speed of the target application program can be further optimized after the optimization processing is carried out based on the configuration file.
In an alternative embodiment, in the case that the target application is in the application white list, if the duration of the target application being used in the target mobile device is greater than the threshold, the usage profile of the target application is uploaded to the web server.
That is to say, in the embodiment of the present application, the usage profile of the target application is uploaded to the network server only when the duration of the target application being used in the target mobile device is greater than the threshold. On one hand, the data storage capacity and the data processing capacity of the network server are reduced, on the other hand, the network server can be ensured to more accurately determine the common code segments of the target application programs in the plurality of mobile devices based on the configuration files determined by using the configuration files, and further, the execution speed of the target application programs can be better optimized in the initial installation stage of the application programs.
In an alternative embodiment, if the operating system meets the optimization opportunity, an implementation manner of performing the optimization processing based on the configuration file so that the execution speed of the target application program is optimized may be:
and if the operating system meets the optimization opportunity, performing optimization processing based on the configuration file to perform single-thread scheduling corresponding to the optimization opportunity so as to optimize the execution speed of the target application program and reduce the power consumption of the target mobile equipment.
In addition, in the process of performing optimization processing based on the configuration file, if multi-thread scheduling is performed on the optimization processing process, the multiple threads occupy more memory, and not only is the power consumption high, but also the mobile device generates heat. In order to reduce the memory occupation of the optimization processing, in the embodiment of the application, the single-thread scheduling corresponding to the optimization opportunity is performed on the optimization processing process, so that the execution speed of the target application program is optimized, the memory occupied by the optimization processing process is reduced, and the power consumption and the heating problem of the target mobile device are reduced. Different optimization opportunities are different when the optimization processing process is subjected to single-thread scheduling.
The following describes an embodiment of the present application with reference to a specific scenario.
In this example, the optimization process based on the configuration file is performed to compile at least part of the common code segments of the target application marked by the configuration file into the easily executable machine code.
Fig. 3 is a flowchart of an optimization scheme provided in the embodiment of the present application. In this example, the application center (i.e., the web server) previously downloaded the application white list (i.e., "white list" in fig. 3) from the cloud. The mobile equipment downloads the installation package of the application program A from the application center, and then the application center judges whether the application program A is in a white list:
if the application a is not in the white list, the mobile device may not obtain the configuration file corresponding to the application a (i.e., a core profile file in fig. 3, where the core profile file is used to mark the commonly used code fragments of the application a), after obtaining the installation package of the application a, the mobile device executes a conventional installation process by using a PackageManagerService in the mobile device, and after installing the application a, the commonly used code fragments (recorded in the profile file) are continuously accumulated according to the use condition of the application a by the user. A small amount of optimization is performed by the PackageDexOptimizer in the mobile device according to the locally accumulated commonly used code segments, and in the optimization process, dex2oat compilation is performed on the commonly used code segments by using a dedicated CPU channel (that is, single thread scheduling corresponding to the optimization time is performed on the dex2oat compilation), so that an oat file (that is, oat files in fig. 3) is obtained. When the ART native on the mobile device side executes the code Of the application program A, only a small amount Of oat files can be executed by adopting AOT (Ahead-Of-Time), and other files (namely, the non-used code segments) are executed by adopting JIT (Just-In-Time) (namely compiling execution) or interpretation execution. The speed of AOT execution is higher than the speed of JIT execution and interpretation execution.
If the application program a is in the white list, the mobile device obtains the installation package of the application program a and also obtains the configuration file (i.e., the core profile file in fig. 3) corresponding to the application program a, and after the mobile device obtains the installation package of the application program a, the PackageManagerService in the mobile device replaces the core profile file with the original empty profile file of the application program a in the process of installing the application program a. After the application program A is installed, common code segments are continuously accumulated according to the use condition of the application program A by a user. The PackageDexOptimizer in the mobile device performs optimization according to the core profile file and the locally accumulated common code segments, and performs dex2oat compilation on the common code segments by using a dedicated CPU channel in the optimization process (i.e., performs single-thread scheduling corresponding to the optimization time on the dex2oat compilation), so as to obtain oat files (i.e., oat files in fig. 3). When the ART native on the mobile device side executes the code Of the application program A, more oat files can be executed by adopting AOT (Ahead-Of-Time), and other files (namely, the non-used code segments) are executed by adopting JIT (Just-In-Time) (namely, compiling execution) or interpretation execution. Due to the increase of files that can be executed with AOT, optimization of the execution speed of application a is achieved.
In addition, single-thread scheduling on dex2oat compiling does not affect the compiling effect, so that based on the application, the execution speed of the target application program can be optimized and the memory occupied by the optimization processing process can be reduced under the condition that the compiling effect and foreground application are not affected, and the power consumption and the heating problem of the target mobile equipment are reduced.
Corresponding to the method embodiment, an embodiment of the present application further provides an information processing apparatus, and a schematic structural diagram of the information processing apparatus provided in the embodiment of the present application is shown in fig. 4, and the information processing apparatus may include:
an acquisition module 401, an installation module 402 and a replacement module 403; wherein the content of the first and second substances,
the obtaining module 401 is configured to obtain an installation package of a target application program and a configuration file corresponding to the target application program, where the configuration file is used to mark a common code segment of the target application program;
an installation module 402 for installing the target application based on the operating system and the installation package; wherein the target application comprises an original configuration file;
the replacing module 403 is configured to replace the original configuration file with the configuration file during the installation of the target application, so as to store the configuration file in association with the target application;
and if the operating system meets the optimization opportunity, carrying out optimization processing based on the configuration file so as to optimize the execution speed of the target application program.
According to the information processing device provided by the embodiment of the application, the configuration file used for marking the common code segments of the target application is obtained in the process of installing the target application, namely, based on the application, the configuration file of the application is not empty any more after the application is installed, so that the target application can be optimized in the process of installing the application or in the early use stage (namely the initial installation stage) after the application is installed, and the problem that the application cannot be optimized in the initial installation stage of the application in the prior art is solved.
In an optional embodiment, the obtaining module 401 includes:
the first obtaining module is used for obtaining the installation package of the target application program from the network server;
and the second obtaining module is used for obtaining the configuration file corresponding to the target application program from the network server in the process of obtaining the installation package of the target application program if the target application program belongs to the application program white list.
In an optional embodiment, the configuration file corresponding to the target application is generated by the network server according to the target application in the application white list, and counting usage configuration files from a plurality of different mobile devices; the use configuration file is used for representing common code segments of the target application program in the use process, wherein the common code segments are marked and accumulated by the mobile equipment corresponding to the use configuration file.
In an optional embodiment, the configuration file corresponding to the target application program is determined by the network server counting the marking times of each common code segment marked by using the configuration file from a plurality of different mobile devices, and according to the marking times of each common code segment; the marking times of each common code segment marked by the configuration file corresponding to the target application program are all larger than the marking times of any one of the common code segments of the target application program.
In an optional embodiment, the apparatus further comprises:
the mark accumulation module is used for marking and accumulating the common code segments of the target application program in the use process to obtain a use configuration file corresponding to the target mobile equipment;
and the updating module is used for updating the configuration file if any common code segment marked by the configuration file corresponding to the target mobile equipment is not in the configuration file, so that any common code segment is added to the common code segment marked by the configuration file.
In an optional embodiment, the apparatus further comprises:
and under the condition that the target application program is located in an application program white list, if the used time length of the target application program in the target mobile equipment is greater than a threshold value, uploading the use configuration file of the target application program to a network server.
In an optional embodiment, if the operating system meets the optimization opportunity, performing an optimization process based on the configuration file to optimize the execution speed of the target application program includes:
and if the operating system meets the optimization opportunity, performing optimization processing based on the configuration file to perform single-thread scheduling corresponding to the optimization opportunity so as to optimize the execution speed of the target application program and reduce the power consumption of the target mobile equipment.
Corresponding to the method embodiment, the application also provides an information processing device, such as a terminal, a server and the like. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, big data and artificial intelligence platform. The terminal may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, and the like.
An exemplary diagram of a hardware structure block diagram of an information processing device provided in an embodiment of the present application is shown in fig. 5, and may include:
a processor 1, a communication interface 2, a memory 3 and a communication bus 4;
wherein, the processor 1, the communication interface 2 and the memory 3 complete the communication with each other through the communication bus 4;
optionally, the communication interface 2 may be an interface of a communication module, such as an interface of a GSM module;
the processor 1 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present application.
The memory 3 may comprise a high-speed RAM memory and may also comprise a non-volatile memory, such as at least one disk memory.
The processor 1 is specifically configured to execute the computer program stored in the memory 3, so as to execute the following steps:
obtaining an installation package of a target application program and a configuration file corresponding to the target application program, wherein the configuration file is used for marking a common code segment of the target application program;
installing the target application program based on an operating system and the installation package; wherein the target application comprises an original configuration file;
replacing the original configuration file with the configuration file during installation of the target application program so as to store the configuration file in association with the target application program;
and if the operating system meets the optimization opportunity, carrying out optimization processing based on the configuration file so as to optimize the execution speed of the target application program.
Alternatively, the detailed functions and extended functions of the computer program may be as described above.
Embodiments of the present application further provide a readable storage medium, where the storage medium may store a computer program adapted to be executed by a processor, where the computer program is configured to:
obtaining an installation package of a target application program and a configuration file corresponding to the target application program, wherein the configuration file is used for marking a common code segment of the target application program;
installing the target application program based on an operating system and the installation package; wherein the target application comprises an original configuration file;
replacing the original configuration file with the configuration file during installation of the target application program so as to store the configuration file in association with the target application program;
and if the operating system meets the optimization opportunity, carrying out optimization processing based on the configuration file so as to optimize the execution speed of the target application program.
Alternatively, the detailed functions and extended functions of the computer program may be as described above.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
It should be understood that the technical problems can be solved by combining and combining the features of the embodiments from the claims.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. An information processing method is applied to a target mobile device, and comprises the following steps:
obtaining an installation package of a target application program and a configuration file corresponding to the target application program, wherein the configuration file is used for marking a common code segment of the target application program;
installing the target application program based on an operating system and the installation package; wherein the target application comprises an original configuration file;
replacing the original configuration file with the configuration file during installation of the target application program so as to store the configuration file in association with the target application program;
and if the operating system meets the optimization opportunity, carrying out optimization processing based on the configuration file so as to optimize the execution speed of the target application program.
2. The method of claim 1, the obtaining an installation package of a target application and a configuration file corresponding to the target application, comprising:
obtaining an installation package of a target application program from a network server;
and if the target application program belongs to an application program white list, acquiring a configuration file corresponding to the target application program from the network server in the process of acquiring the installation package of the target application program.
3. The method of claim 2, wherein the configuration file corresponding to the target application is generated by the web server according to usage configuration files of a plurality of different mobile devices counted by the target application in the application white list; the use configuration file is used for representing common code segments of the target application program in the use process, wherein the common code segments are marked and accumulated by the mobile equipment corresponding to the use configuration file.
4. The method according to claim 3, wherein the configuration file corresponding to the target application program is determined by the network server counting the marking times of each common code segment marked by using the configuration file from a plurality of different mobile devices according to the marking times of each common code segment; the marking times of each common code segment marked by the configuration file corresponding to the target application program are all larger than the marking times of any one of the common code segments of the target application program.
5. The method of any of claims 1-4, further comprising:
marking and accumulating the common code segments of the target application program in the using process to obtain a use configuration file corresponding to the target mobile equipment;
and if any common code segment marked by using the configuration file corresponding to the target mobile equipment is not in the configuration file, updating the configuration file so as to increase the any common code segment in the common code segment marked by the configuration file.
6. The method of claim 5, further comprising:
and under the condition that the target application program is located in an application program white list, if the used time length of the target application program in the target mobile equipment is greater than a threshold value, uploading the use configuration file of the target application program to a network server.
7. The method of claim 1, wherein if the operating system meets an optimization opportunity, performing an optimization process based on the configuration file to optimize the execution speed of the target application comprises:
and if the operating system meets the optimization opportunity, performing optimization processing based on the configuration file to perform single-thread scheduling corresponding to the optimization opportunity so as to optimize the execution speed of the target application program and reduce the power consumption of the target mobile equipment.
8. An information processing apparatus comprising:
the system comprises an obtaining module, a judging module and a judging module, wherein the obtaining module is used for obtaining an installation package of a target application program and a configuration file corresponding to the target application program, and the configuration file is used for marking a common code segment of the target application program;
an installation module for installing the target application program based on an operating system and the installation package; wherein the target application comprises an original configuration file;
the replacing module is used for replacing the original configuration file with the configuration file in the process of installing the target application program so as to store the configuration file and the target application program in a correlation mode;
and if the operating system meets the optimization opportunity, carrying out optimization processing based on the configuration file so as to optimize the execution speed of the target application program.
9. An information processing apparatus comprising:
a memory for storing a computer program;
a processor for invoking and executing said computer program for implementing the steps of the information processing method according to any one of claims 1-7.
10. A readable storage medium on which a computer program is stored which, when being executed by a processor, carries out the steps of the information processing method according to any one of claims 1 to 7.
CN202110136267.3A 2021-02-01 2021-02-01 Information processing method, device, equipment and storage medium Pending CN112799690A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110136267.3A CN112799690A (en) 2021-02-01 2021-02-01 Information processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110136267.3A CN112799690A (en) 2021-02-01 2021-02-01 Information processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112799690A true CN112799690A (en) 2021-05-14

Family

ID=75813350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110136267.3A Pending CN112799690A (en) 2021-02-01 2021-02-01 Information processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112799690A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116775163A (en) * 2023-08-22 2023-09-19 深圳富联富桂精密工业有限公司 Configuration file acquisition method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050235281A1 (en) * 2004-04-19 2005-10-20 Telefonaktiebolaget L M Ericsson (Publ) Combined software installation package
US20150082298A1 (en) * 2013-09-19 2015-03-19 Qiu Shi WANG Packaging and deploying hybrid applications
CN105388990A (en) * 2015-10-19 2016-03-09 北京奇虎科技有限公司 Power saving processing method and apparatus for terminal device
US10007501B1 (en) * 2017-05-19 2018-06-26 Central South University Method of deploying applications rapidly based on customized android platform
CN110502901A (en) * 2019-07-31 2019-11-26 湖南微算互联信息技术有限公司 Configuration information guard method, system and the storage medium of cloud cell phone manufacturer
CN111061483A (en) * 2019-11-28 2020-04-24 Oppo广东移动通信有限公司 Compiling optimization method and device and electronic equipment
CN111142922A (en) * 2018-11-02 2020-05-12 阿里巴巴集团控股有限公司 Application program updating method and device, terminal and server

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050235281A1 (en) * 2004-04-19 2005-10-20 Telefonaktiebolaget L M Ericsson (Publ) Combined software installation package
US20150082298A1 (en) * 2013-09-19 2015-03-19 Qiu Shi WANG Packaging and deploying hybrid applications
CN105388990A (en) * 2015-10-19 2016-03-09 北京奇虎科技有限公司 Power saving processing method and apparatus for terminal device
US10007501B1 (en) * 2017-05-19 2018-06-26 Central South University Method of deploying applications rapidly based on customized android platform
CN111142922A (en) * 2018-11-02 2020-05-12 阿里巴巴集团控股有限公司 Application program updating method and device, terminal and server
CN110502901A (en) * 2019-07-31 2019-11-26 湖南微算互联信息技术有限公司 Configuration information guard method, system and the storage medium of cloud cell phone manufacturer
CN111061483A (en) * 2019-11-28 2020-04-24 Oppo广东移动通信有限公司 Compiling optimization method and device and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116775163A (en) * 2023-08-22 2023-09-19 深圳富联富桂精密工业有限公司 Configuration file acquisition method and device, electronic equipment and storage medium
CN116775163B (en) * 2023-08-22 2024-02-02 深圳富联富桂精密工业有限公司 Configuration file acquisition method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111078318B (en) Processing method, device and system of configuration file and storage medium
CN105843650B (en) Application program management method and device in intelligent terminal
CN103797436B (en) For the dynamic power optimization of calculation element
US9146909B2 (en) Web browsing enhanced by cloud computing
CN109960507A (en) Compile optimization method, device, storage medium, intelligent terminal and server
CN110609689A (en) Application installation and operation method and device
US8307164B2 (en) Automatic determination of read-ahead amount
US8583783B1 (en) Method and system for adaptive recovery of heap memory
CN111258557B (en) Code processing method, device, electronic equipment and computer readable medium
EP3534266B1 (en) Method, apparatus and system for prefetching data
CN112948026A (en) Hotspot code processing method and device, server, electronic equipment and storage medium
CN112667405B (en) Information processing method, device, equipment and storage medium
WO2021115177A1 (en) Application installation method and apparatus, terminal device, server and storage medium
CN111324533A (en) A/B test method and device and electronic equipment
CN112559088A (en) Configuration file optimization method, device, server and storage medium
CN105337783A (en) Method of monitoring abnormal flow consumption of communication equipment and apparatus
CN112799690A (en) Information processing method, device, equipment and storage medium
CN110389817B (en) Scheduling method, device and computer readable medium of multi-cloud system
WO2021135947A1 (en) Hotspot code processing method and apparatus, electronic device and storage medium
CN107689969B (en) Method and device for determining cache strategy
CN110347546B (en) Dynamic adjustment method, device, medium and electronic equipment for monitoring task
CN107450937B (en) Application program running method and running device
CN108399031B (en) Method and device for determining interface layout mode
CN106817383B (en) Access cycle management method and device based on data statistics reporting
WO2021088686A1 (en) Compiler optimization information generating method and apparatus, and electronic device

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