Information processing method and device, container, electronic equipment and storage medium

By obtaining the operation information of the target code to decide whether to update its storage location, the problem of difficulty in dynamically adjusting the storage location in the prior art is solved, and the effect of optimizing the processor read and write speed and user experience is achieved.

CN120010749APending Publication Date: 2025-05-16BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311533000.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-16
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

The prior art is difficult to dynamically update its storage location according to the actual operation of the target code to optimize the read and write speed of the processor and the user experience.

Method used

By obtaining the operation information of the target code, including the operation frequency and power consumption information, it is determined whether to update the storage location of the target code, from a position with a faster read and write speed to a position with a slower read and write speed, or vice versa.

Benefits of technology

It realizes dynamic adjustment of the storage location according to the actual operation of the target code, improves the processing efficiency of the processor, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120010749A_ABST
    Figure CN120010749A_ABST
Patent Text Reader

Abstract

The invention relates to an information processing method and device, a container, electronic equipment and a storage medium. The method comprises the steps of obtaining a current first storage position of a target code; wherein the target code is obtained by compiling a source code of a preset application program; running information of the target code in a preset period is obtained, and the running information at least comprises running frequency information of the target code and / or power consumption information in the process of running the target code; determining whether to update the first storage position to a second storage position or not according to the operation information; wherein the read-write speed of the first storage position is different from that of the second storage position.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of information processing technology, and in particular to an information processing method, device, container, electronic device and storage medium. Background Art

[0002] With the development of information processing technology, more and more information processing methods have emerged to meet the information processing needs of different environments and application scenarios. Virtualization technology, as one of the information processing technologies, can virtualize the physical footprint into multiple logical computers. Each logical computer can independently run the operating system and various applications. Each virtual platform has its own virtual hardware, such as processors, network cards, and storage units.

[0003] The storage unit is used to store various information, such as data and codes related to the system and various applications. The processor can read relevant information from the storage unit to perform business processing during the process of processing business. Summary of the invention

[0004] The present disclosure provides an information processing method, device, container, electronic device and storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided an information processing method, comprising: obtaining a current first storage location and reference information of a target code; wherein the target code is obtained by compiling a source code of a preset application; obtaining operation information of the target code within a preset period, wherein the operation information at least includes frequency information of the target code being executed and / or power consumption information during the execution of the target code; determining whether to update the first storage location to a second storage location based on the operation information; wherein the read and write speeds of the first storage location and the second storage location are different.

[0006] In one embodiment, the target code includes sub-target codes corresponding to multiple different functions; obtaining the current first storage position and reference information of the target code includes: obtaining the current first storage position of each sub-target code; obtaining the operation information of the target code within a preset period includes: obtaining the operation information of each sub-target code being executed within the preset period; determining whether to update the first storage position to the second storage position includes: determining whether to update the first storage position of the sub-target code to the second storage position based on the operation information of the sub-target code being executed.

[0007] In one embodiment, the read and write speed of the first storage location is lower than the read and write speed of the second storage location; the target code also has reference information, and the reference information includes: first information associated with frequency, and / or, second information associated with power consumption; the determination of whether to update the first storage location to the second storage location includes at least one of the following: if the frequency corresponding to the frequency information is greater than the frequency corresponding to the first information, the first storage location is updated to the second storage location; if the frequency corresponding to the frequency information is less than the frequency corresponding to the first information, the first storage location is maintained unchanged; if the power consumption corresponding to the power consumption information is greater than the power consumption corresponding to the second information, the first storage location is updated to the second storage location; if the power consumption corresponding to the power consumption information is less than the power consumption corresponding to the second information, the first storage location is maintained unchanged.

[0008] In one embodiment, the read and write speed of the first storage location is greater than the read and write speed of the second storage location; the target code also has reference information, and the reference information includes: first information associated with frequency, and / or, second information associated with power consumption; the determination of whether to update the first storage location to the second storage location includes at least one of the following: if the frequency corresponding to the frequency information is less than the frequency corresponding to the first information, the first storage location is updated to the second storage location; if the frequency corresponding to the frequency information is greater than the frequency corresponding to the first information, the first storage location is maintained unchanged; if the power consumption corresponding to the power consumption information is less than the power consumption corresponding to the second information, the first storage location is updated to the second storage location; if the power consumption corresponding to the power consumption information is greater than the power consumption corresponding to the second information, the first storage location is maintained unchanged.

[0009] In one embodiment, the method further includes: deleting the target code when the frequency corresponding to the frequency information is less than the frequency corresponding to the first information within N consecutive preset periods; wherein N is a preset positive integer.

[0010] In one embodiment, the method further includes: updating the first information according to the frequency information; and / or updating the second information according to the power consumption information.

[0011] In one embodiment, the acquiring of the operation information of the target code within a preset period includes: detecting a user input operation related to running the preset application; and acquiring the frequency information determined according to the user input operation.

[0012] In one embodiment, the method further includes: compiling the source code of the preset application to obtain the target code; allocating an initial storage location and initial operation information to the target code; wherein the initial operation information includes: initial frequency information at which the target code is run and / or initial power consumption information during the process of running the target code.

[0013] In one embodiment, the first storage location is a location in a memory, and the second storage location is a location in a storage; or, the second storage location is a location in a memory, and the first storage location is a location in a storage.

[0014] In one embodiment, the method further includes: obtaining a response level; the response level is the speed level of executing the target code to obtain an execution result; determining a target processor that matches the execution of the target code according to the response level; wherein the main frequency of the target processor is positively correlated with the response level; and executing the target code through the target processor.

[0015] In one embodiment, the target code includes sub-target codes corresponding to multiple different functions; the sub-target codes correspond to their own response levels; determining the target processor that matches the running of the target code based on the response level includes: determining the target processor that matches the running of the sub-target code based on the response level of the sub-target code.

[0016] According to a second aspect of an embodiment of the present disclosure, there is provided an information processing device, comprising: a first acquisition module, for acquiring a current first storage location of a target code; the target code is obtained by compiling a source code of a preset application; a second acquisition module, for acquiring operation information of the target code within a preset period, wherein the operation information at least includes frequency information of the target code being executed and / or power consumption information during the execution of the target code; an update module, for determining whether to update the first storage location to a second storage location based on the operation information; wherein the read and write speeds of the first storage location and the second storage location are different.

[0017] According to a third aspect of an embodiment of the present disclosure, a container is provided, comprising: a processor and a memory for storing executable instructions that can be run on the processor, wherein: when the processor is used to run the executable instructions, the executable instructions execute the method described in any one of the above embodiments.

[0018] According to a fourth aspect of the embodiments of the present disclosure, an electronic device is provided, including:

[0019] A processor and a memory for storing executable instructions that can be run on the processor, wherein: when the processor is used to run the executable instructions, the executable instructions execute the method described in any one of the above embodiments.

[0020] According to a fifth aspect of the embodiments of the present disclosure, a non-temporary computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the method described in any of the above embodiments is implemented.

[0021] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0022] The scheme of the embodiment of the present disclosure can reflect the actual operation of the target code through the operation information of the target code, which also shows the degree of application of the target code used by the user, so whether to update the first storage position of the target code can be determined according to the operation information, and the current first storage position of the target code can be dynamically updated or maintained according to the actual operation of the target code. Since the operation conditions in different preset periods may be different, the first storage position can be dynamically adjusted according to the operation information in each preset period, so as to update the storage position of the target code to a matching position.

[0023] For example, when the frequency information corresponds to a frequency lower than the reference frequency, or the power consumption information corresponds to a power consumption lower than the reference power consumption, it indicates that the target code is executed less frequently, and the user uses the application corresponding to the target code less frequently. The target code can be updated from a storage location with a faster read / write speed to a storage location with a slower read / write speed, thereby reducing the storage location with a faster read / write speed, and providing storage space for other target codes with a higher execution frequency in a storage location with a faster read / write speed, thereby increasing the running speed of other target codes and improving the user experience.

[0024] For another example, when the frequency corresponding to the frequency information is greater than the reference frequency, or the power consumption corresponding to the power consumption information is greater than the reference power consumption, it means that the target code is executed at a high frequency, and the user uses the application corresponding to the target code at a high frequency. Then, the target code can be updated from a storage location with a slower read / write speed to a storage location with a faster read / write speed, thereby increasing the read / write speed of the target code, and further increasing the processing speed of the processor for the target code, making the application corresponding to the target code respond faster, and improving the user experience.

[0025] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0027] Figure 1 is a schematic diagram of an information processing method according to an exemplary embodiment;

[0028] Figure 2 is a schematic diagram showing a method of obtaining operation information according to an exemplary embodiment;

[0029] Figure 3 is a schematic diagram of another information processing method according to an exemplary embodiment;

[0030] Figure 4 is a schematic diagram of an information processing device according to an exemplary embodiment;

[0031] Figure 5 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0032] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices consistent with some aspects of the present disclosure as detailed in the appended claims.

[0033] refer to Figure 1 , is a schematic diagram of an information processing method, the method comprising:

[0034] S100: Acquire a current first storage location of a target code; wherein the target code is obtained by compiling a source code of a preset application program.

[0035] S200: Acquire the operation information of the target code within a preset period, wherein the operation information at least includes the frequency information of the target code being executed and / or the power consumption information during the process of executing the target code.

[0036] S300: Determine whether to update the first storage location to the second storage location according to the operation information; wherein the read and write speeds of the first storage location and the second storage location are different.

[0037] The executor of the method may be an electronic device, which generally has a central processing unit (CPU), a storage unit, and some other hardware. Various software, such as various applications, are installed in these electronic devices. Different applications have different functions. The information of these software is stored in the storage unit. The central processing unit can interact with the information stored in the storage unit, for example, it can read the information stored in the storage unit to execute related programs.

[0038] Exemplarily, the execution environment of the method may also be a virtual platform, such as a virtual machine and a container, for example, WebAssembly (WASM).

[0039] For S100, for each application, the source code of these applications can be written in various computer programming languages. For example, the same application can be written in different programming languages, such as java, c, c++, C#, pascal, python, etc. Different applications can also be written according to different programming needs, and different source codes are written according to different programming needs. Source code can also be called source code.

[0040] In this case, since the source code of the application is different, in order to facilitate the execution of the application, the source code is converted into target code through compilation, which can be a machine code that can be recognized and executed by the central processing unit. The target code can also be called target code.

[0041] Exemplarily, the target code here may also be code that can be interpreted and executed by an interpreter in the running environment. For example, if there is an interpreter in the LLVM container, the source code can be converted into interpreted and executed code.

[0042] Here, each application is recorded as a preset application, and one of the applications is taken as an example for explanation.

[0043] The source code of the preset program is compiled to obtain the target code, which has a storage location, which is recorded as the first storage location. The first storage location is used to indicate the storage address of the target code in the storage unit. The storage unit may include multiple areas with different read and write speeds. The first storage location can indicate the current storage location of the target code.

[0044] Exemplarily, the first storage location may be a memory or a storage. The memory may include a static random access memory, a dynamic random access memory, or other memory for data exchange with the CPU. The memory may temporarily store the operation data in the CPU, as well as the data exchanged with an external memory such as a hard disk. The storage may include storage such as a hard disk, a solid-state drive, a flash memory, and an optical disk. The storage here may be referred to as external storage.

[0045] Exemplarily, the representation form of the first storage location is not limited, for example, the base address and the offset address together represent the first storage address.

[0046] Exemplarily, the method of obtaining the first storage location is not limited, and the first storage location may also be obtained by obtaining a configuration table. The configuration table may be a table for configuring the first storage location, and the execution subject may directly obtain the configuration table.

[0047] For S200, the preset period can be determined according to actual business needs, and can be a period in units of hours, days, weeks, months, etc.

[0048] The operation information is the information about the target code actually being executed within a preset period, including frequency information and / or power consumption information. The frequency information can indicate the number of times the target code is actually executed within the preset period, and the power consumption information can indicate the actual power consumption of executing the target code within the preset period.

[0049] Exemplarily, the power consumption information is the average power consumption of each execution of the target code within a preset period, or may be the total power consumption of executing the target code within a preset period.

[0050] The power consumption information here refers to the power consumption of the execution subject, such as the power consumption of the central processing unit, including the power consumption of the CPU in the virtual platform.

[0051] Exemplarily, the frequency information may include a specific frequency value, or may include a frequency range in which the frequency value exists.

[0052] Exemplarily, the power consumption information may include a specific power consumption value or a power consumption range.

[0053] The execution entity can directly obtain the operation information. For example, within a preset period, each time the target code is executed, the number of times the target code is run and / or the power consumption of running the target code can be recorded, thereby facilitating the determination of frequency information and power consumption information within the preset period.

[0054] The frequency information is used to indicate the frequency at which the target code is run within a preset period. The higher the frequency corresponding to the frequency information, the more frequently the preset application corresponding to the target code is used, and the more interactive operations the user has with the application. The lower the frequency corresponding to the frequency information, the lower the frequency at which the preset application corresponding to the target code is used, and the fewer interactive operations the user has with the application.

[0055] The power consumption information is used to indicate the power consumption of the target code when it is run within a preset period. The higher the power consumption corresponding to the power consumption information, the more energy the central processor needs to process the target code, the more computing resources and other resources are needed to run the target code, and the faster the interaction between the central processor and the storage address of the target code is, the more conducive it is to control the running of the target code. The lower the frequency corresponding to the frequency information, the fewer computing resources and other resources are needed for the central processor to run the target code, and the speed of the interaction between the central processor and the storage address of the target code has a lower impact on the central processor running the target code.

[0056] For S300: After obtaining the operation information of the target code, it can be determined whether to update the first storage location to the second storage location based on the operation information. The read and write speeds of the first storage location and the second storage location are different. The operation information of the target code can reflect the actual operation of the target code, which also shows the degree of application of the target code used by the user. Therefore, by determining whether to update the first storage location of the target code based on the operation information, it is possible to update the current first storage location of the target code or maintain the current first storage location according to the actual operation of the target code. Since the operation conditions in different preset cycles may be different, the dynamic adjustment of the first storage location can be achieved according to the operation information in each preset cycle, so as to update the storage location of the target code to a matching location. After updating the first storage location to the second storage location, the speed at which the processor reads the target code can be adjusted, thereby optimizing the storage location of the target code of each preset application in the storage unit, so that the processor can read the target code with a higher operation frequency faster, improve the processing efficiency of the target code with a higher operation frequency, and thus improve the user experience.

[0057] For example, when the frequency corresponding to the frequency information is less than the reference frequency, or the power consumption corresponding to the power consumption information is less than the reference power consumption, it means that the target code is executed less frequently, and the user uses the application corresponding to the target code less frequently. The target code can be updated from the first storage location with a faster read / write speed to the second storage location with a slower read / write speed, thereby reducing the storage location with a faster read / write speed, and providing storage space of the storage location with a faster read / write speed for other target codes with a higher execution frequency, thereby increasing the running speed of other target codes and improving the user experience.

[0058] For another example, when the frequency corresponding to the frequency information is greater than the reference frequency, or the power consumption corresponding to the power consumption information is greater than the reference power consumption, it means that the target code is executed at a high frequency, and the user uses the application corresponding to the target code at a high frequency. Then, the target code can be updated from the first storage location with a slower reading and writing speed to the second storage location with a faster reading and writing speed, thereby increasing the reading and writing speed of the target code, and further increasing the processing speed of the processor for the target code, so that the application corresponding to the target code responds faster, improving the user experience.

[0059] In one embodiment, the read and write speed of the first storage location is lower than the read and write speed of the second storage location. For example, the first storage location is a storage, and the second storage location is a memory.

[0060] The target code also has reference information, which may include at least: first information associated with frequency, and / or second information associated with power consumption. The reference information is used as reference information for whether the first storage location of the target code is updated. The first storage location and the reference information may be carried in the target code or may be used as additional information of the target code. The reference information may be identified during the operation of the target code. The first storage location and the reference information may also be obtained separately.

[0061] The specific form of the reference information and the first storage location can be determined according to actual business needs, and can be expressed in the form of indication information, characters, or fields. After identifying the first storage location, the central processing unit can determine the current storage location of the target code based on the identified information. After identifying the reference information, the central processing unit can determine the first information currently associated with the frequency of the target code and / or the second information associated with the power consumption based on the identified information.

[0062] The first information is used as a reference for the frequency information to determine whether to update the first storage location.

[0063] The initial value of the first information may be configured after the compilation is completed and before the first execution, and the first information may be updated as the target code is executed.

[0064] The second information is also used as a reference for the power consumption information to determine whether to update the first storage location.

[0065] The initial value of the second information may be configured after the compilation is completed and before the first execution, and the power consumption information may be updated as the target code is executed.

[0066] Exemplarily, the reference information here may be initial reference information, including initial frequency information and initial power consumption information, or may be reference information updated after the target code has been run for a plurality of preset cycles.

[0067] The information included in the reference information and the operating information is information of the same dimension, that is, when the reference information includes information of the frequency dimension, the operating information includes information of the frequency dimension, and when the reference information includes information of the power consumption dimension, the operating information includes information of the power consumption dimension. For example, if the reference information includes the first information, the operating information includes the frequency information. For another example, if the reference information includes the second information, the operating information includes the power consumption information. For another example, if the reference information includes the second information and the first information, the operating information includes the power consumption information and the frequency information.

[0068] In S300, determining whether to update the first storage location to the second storage location includes at least one of the following:

[0069] If the frequency corresponding to the frequency information is greater than the frequency corresponding to the first information, the first storage location is updated to the second storage location;

[0070] If the frequency corresponding to the frequency information is less than the frequency corresponding to the first information, the first storage position is maintained unchanged;

[0071] If the power consumption corresponding to the power consumption information is greater than the power consumption corresponding to the second information, the first storage location is updated to the second storage location;

[0072] If the power consumption corresponding to the power consumption information is less than the power consumption corresponding to the second information, the first storage location is maintained unchanged.

[0073] When the reference information includes at least the first information and the running information includes at least the frequency information, if the frequency corresponding to the frequency information is greater than the frequency corresponding to the first information, it means that the target code is run at a high frequency within the preset period, and the user uses the application corresponding to the target code at a high frequency, then the first storage location is updated to the second storage location, which can increase the reading and writing speed of the target code, thereby facilitating the processor to read the target code from the second storage location, thereby increasing the processing speed of the processor and thereby improving the user experience.

[0074] If the frequency corresponding to the frequency information is less than the frequency corresponding to the first information, it means that the frequency of the target code being run within the preset period does not exceed the frequency corresponding to the first information, and the frequency of the user using the target code corresponding to the application does not exceed the frequency corresponding to the first information, and the storage location of the target code is maintained as the first storage location, which can meet the user's use needs. It also reduces the situation where the target code is stored in the second storage location and occupies the second storage location, and reserves storage space for other target codes whose frequency information corresponds to a frequency greater than the frequency corresponding to the first information, so that other target codes whose frequency information corresponds to a frequency greater than the frequency corresponding to the first information are stored in the second storage location, thereby improving the running speed of other target codes whose frequency information corresponds to a frequency greater than the frequency corresponding to the first information, and improving the user experience.

[0075] Similarly, when the reference information includes at least the second information and the running information includes at least the power consumption information, if the power consumption corresponding to the power consumption information is greater than the power consumption corresponding to the second information, it means that the computing resources and other resources required for the processor to run the target code are large, and a large amount of data corresponding to the target code needs to be processed. In this way, the first storage location is updated to the second storage location. This can increase the reading and writing speed of the target code, thereby facilitating the processor to read the target code from the second storage location, thereby increasing the processing speed of the processor and thereby improving the user experience.

[0076] If the power consumption corresponding to the power consumption information is less than the power consumption corresponding to the second information, it means that the computing resources and other resources required by the processor to run the target code are not less than the minimum, and the storage location of the target code is maintained as the first storage location, which can meet the user's use needs. It also reduces the situation where the target code is stored in the second storage location and occupies the second storage location, and reserves storage space for other target codes whose power consumption corresponding to the power consumption information is greater than the power consumption corresponding to the second information, so that other target codes whose power consumption corresponding to the power consumption information is greater than the power consumption corresponding to the second information are stored in the second storage location, thereby improving the running speed of other target codes whose power consumption corresponding to the power consumption information is greater than the power consumption corresponding to the second information, and improving the user experience.

[0077] In one embodiment, the method may further include: obtaining reference information.

[0078] In one embodiment, the read and write speed of the first storage location is greater than the read and write speed of the second storage location. For example, the first storage location is a memory, and the second storage location is a storage.

[0079] In S300, determining whether to update the first storage location to the second storage location includes at least one of the following:

[0080] If the frequency corresponding to the frequency information is less than the frequency corresponding to the first information, the first storage location is updated to the second storage location;

[0081] If the frequency corresponding to the frequency information is greater than the frequency corresponding to the first information, the first storage position is maintained unchanged;

[0082] If the power consumption corresponding to the power consumption information is less than the power consumption corresponding to the second information, the first storage location is updated to the second storage location;

[0083] If the power consumption corresponding to the power consumption information is greater than the power consumption corresponding to the second information, the first storage location is maintained unchanged.

[0084] When the reference information includes at least the first information and the running information includes at least the frequency information, if the frequency corresponding to the frequency information is less than the frequency corresponding to the first information, it means that the target code is run at a low frequency within the preset period, and the user uses the application corresponding to the target code at a low frequency, then the first storage location is updated to the second storage location, which can reduce the situation where the target code is stored in the second storage location and occupies the second storage location, and reserve storage space for other target codes whose frequency information corresponds to a frequency greater than the frequency corresponding to the first information, so that other target codes whose frequency information corresponds to a frequency greater than the frequency corresponding to the first information are stored in the second storage location, thereby increasing the running speed of other target codes whose frequency information corresponds to a frequency greater than the frequency corresponding to the first information, and improving the user experience.

[0085] If the frequency corresponding to the frequency information is greater than the frequency corresponding to the first information, it means that the target code is run at a high frequency within the preset period, the user uses the application corresponding to the target code at a high frequency, the target code is run at a frequency exceeding the frequency corresponding to the first information within the preset period, and the user uses the application corresponding to the target code at a frequency exceeding the frequency corresponding to the first information. The storage location of the target code is maintained as the first storage location, so that the read and write speed of the target code can be maintained at a high level, thereby facilitating the processor to read the target code from the first storage location, improving the processing speed of the processor, and thus improving the user experience.

[0086] Similarly, when the reference information includes at least the second information and the running information includes at least the power consumption information, if the power consumption corresponding to the power consumption information is less than the power consumption corresponding to the second information, it means that the computing resources and other resources required by the processor to run the target code are less, and the first storage location is updated to the second storage location. This can reduce the situation where the target code is stored in the second storage location and occupies the second storage location, and reserve storage space for other target codes whose power consumption corresponding to the power consumption information is greater than the power consumption corresponding to the second information, so that other target codes whose power consumption corresponding to the power consumption information is greater than the power consumption corresponding to the second information are stored in the second storage location, thereby improving the running speed of other target codes whose power consumption corresponding to the power consumption information is greater than the power consumption corresponding to the second information, thereby improving the user experience.

[0087] If the power consumption corresponding to the power consumption information is greater than the power consumption corresponding to the second information, it means that the computing resources and other resources required by the processor to run the target code are much higher, then the storage location of the target code is maintained as the first storage location, so that the reading and writing speed of the target code can be maintained at a high level, thereby facilitating the processor to read the target code from the first storage location, improving the processing speed of the processor, and thereby improving the user experience.

[0088] In one embodiment, the information processing method further includes:

[0089] When the frequency corresponding to the frequency information is less than the frequency corresponding to the first information within N consecutive preset periods, the target code is deleted; wherein N is a preset positive integer.

[0090] If the frequency corresponding to the frequency information of the target code being run is always lower than the frequency corresponding to the first information within multiple consecutive preset cycles, it means that the user has not used the application corresponding to the target code within multiple consecutive preset cycles. The user may not be interested in the application corresponding to the target code. In this case, the application corresponding to the target code can be deleted, thereby reducing the space of the storage unit occupied by the target code.

[0091] In one embodiment, the target code includes sub-target codes corresponding to multiple different functions.

[0092] The source code of each preset application includes multiple functions, each function corresponds to its own code segment. When the processor runs the preset application, it can execute some code segments in the preset application according to business needs, that is, execute some functions, thereby realizing the function corresponding to the function.

[0093] S100, obtaining the current first storage position of the target code, including: obtaining the current first storage position of each sub-target code and the current first information of the sub-target code.

[0094] S200, obtaining the running information of the target code within a preset period, including: obtaining the running information of each sub-target code within the preset period.

[0095] S300, determining whether to update the first storage location to the second storage location, including: determining whether to update the first storage location of the sub-target code to the second storage location based on information about the sub-target code being executed.

[0096] This embodiment takes the storage position of the sub-target code corresponding to each function included in the preset application as the adjustment object, and adjusts the storage position of the sub-target code corresponding to each function. In the preset application, some functions may be called or run with a higher frequency, and some functions may be called or run with a lower frequency. The higher the frequency of being called or run, the higher the frequency of users using the corresponding function of the function, and the lower the frequency of being called or run, the lower the frequency of users using the corresponding function of the function. Whether to update the current first storage position of the sub-target code corresponding to each function can be determined based on the running information of each function, such as the frequency information and / or power consumption information of being called or run within a preset period.

[0097] Since the reading and writing speeds of the first storage location and the second storage location are different, after the first storage location is updated to the second storage location, the speed at which the processor reads the sub-target code can be adjusted, thereby optimizing the storage positions of each sub-target code of the target code corresponding to the preset application in the storage unit, so that the processor can read the sub-target code with a higher frequency corresponding to the frequency information more quickly, thereby improving the processing efficiency of the sub-target code with a higher frequency corresponding to the frequency information, thereby improving the user experience.

[0098] For example, when the frequency information corresponding to the sub-target code is less than the frequency corresponding to the first information of the sub-target code, it means that the sub-target code is executed less frequently and the user uses the function corresponding to the sub-target code less frequently. The sub-target code can be updated from the first storage location with a faster read / write speed to the second storage location with a slower read / write speed, thereby reducing the occupation of the storage location with a faster read / write speed, and providing storage space of the storage location with a faster read / write speed for other sub-target codes with a higher execution frequency, thereby improving the running speed of other sub-target codes and improving the user experience.

[0099] For another example, if the frequency information corresponding to the sub-target code is greater than the frequency corresponding to the first information of the sub-target code, it means that the sub-target code is executed more frequently and the user uses the function corresponding to the sub-target code more frequently. Then the sub-target code can be updated from the first storage location with a slower read / write speed to the second storage location with a faster read / write speed, thereby increasing the read / write speed of the sub-target code, and further increasing the processing speed of the processor for the sub-target code, so that the application corresponding to the sub-target code has a faster response speed, thereby improving the user experience.

[0100] In one embodiment, the information processing method further includes:

[0101] updating the first information according to the frequency information;

[0102] and / or;

[0103] The second information is updated according to the power consumption information.

[0104] After the first storage location is updated, the reference information may also be updated, and the updated reference information may be used as the reference information in the next preset period.

[0105] For example, when the reference information is the first information and the operation information is the frequency information, if the first storage location is updated to the second storage location according to the frequency corresponding to the first information and the frequency corresponding to the frequency information, the frequency corresponding to the first information is updated according to the frequency corresponding to the frequency information. The frequency corresponding to the frequency information may be updated to the frequency corresponding to the first information, that is, the frequency corresponding to the frequency information replaces the frequency corresponding to the first information as the new frequency corresponding to the first information.

[0106] For another example, when the reference information is the second information and the operation information is the power consumption information, if the first storage location is updated to the second storage location according to the power consumption corresponding to the second information and the power consumption corresponding to the power consumption information, the power consumption corresponding to the second information is updated according to the power consumption corresponding to the power consumption information. The power consumption corresponding to the power consumption information may be updated to the power consumption corresponding to the second information, that is, the power consumption corresponding to the power consumption information replaces the power consumption corresponding to the second information as the new power consumption corresponding to the second information.

[0107] In this way, the reference information can be updated, thereby dynamically adjusting the first storage location, increasing the speed at which the processor reads the target code, thereby improving the processing efficiency of the processor and improving the user experience.

[0108] In one embodiment, reference Figure 2 , is a schematic diagram of obtaining operation information, S200, obtaining the operation information of the target code within a preset period, including:

[0109] S201, detecting a user input operation related to running a preset application.

[0110] S202: Obtain frequency information determined according to a user input operation.

[0111] The frequency information of the target code being executed within a preset period is related to the user input operation. For a preset application, the processor runs the target code of the preset application, and calls various functions in the preset application are executed according to the user input operation. After detecting the user input operation, the execution subject responds to the detected user input operation, thereby running the target code of the preset application and realizing various functions of the preset application.

[0112] For example, the user input operation is an operation of opening a preset application. After detecting the operation, the execution subject can run the target code of the preset application, thereby opening the preset application.

[0113] The frequency information includes the number of times the input operation is detected within a preset period, so the frequency corresponding to the frequency information can be determined according to the user input operation.

[0114] In one embodiment, reference Figure 3 , is a schematic diagram of another information processing method, the information processing method further comprising:

[0115] S10, compile the source code of the preset application program to obtain the target code;

[0116] S20, allocating an initial storage location and initial operation information for the target code; wherein the initial operation information includes: initial frequency information of the target code being executed and / or initial power consumption information during the process of executing the target code.

[0117] Before executing S100 to S300, the source code of the preset application needs to be compiled to obtain the target code of the preset application. The compilation process is not limited, for example, it can be compiled by a compiler framework (Low Level Virtual Machine, LLVM), or by other compilers with compilation functions.

[0118] Compiling through the LLVM compiler can achieve the edge of preset applications written in different programming languages, without adjusting the compiler according to the programming language of the preset application, thereby increasing the scope of application of the method.

[0119] After the target code is compiled, initial reference information is allocated to the target code, including initial frequency information and initial power consumption information, etc., so that reference information can be provided for the processor to run the target code for the first preset period.

[0120] Exemplarily, a compiler is included in the execution entity or the running environment, for example, a LLVM compiler is included in the virtualized WASM container.

[0121] In one embodiment, the first storage location is a location in memory and the second storage location is a location in storage;

[0122] or,

[0123] The second storage location is a location in memory and the first storage location is a location in storage.

[0124] In one embodiment, the method further comprises:

[0125] Obtain a response level; the response level is the speed level of running the target code to obtain the running result. According to the response level, determine the target processor that matches the frequency corresponding to the first information, the main frequency of the target processor is positively correlated with the response level, and run the target code through the target processor.

[0126] The response level of running the target code to obtain the running result, the response level is the level of speed of running the target code to obtain the running result, for example, the response level can represent the total time for the processor to process the target code, the longer the total time, the slower the running target code gets the running result, and the lower the response level. The shorter the total time, the faster the running target code gets the running result, and the higher the response level. The higher the response level, the faster the processor with faster processing speed is needed to run the target code, and the lower the response level, the slower the processor with slower processing speed can run the target code. The number of response levels and the intervals between levels can be determined according to actual business needs. For example, different response levels can be distinguished by time range.

[0127] When there are multiple processors in the execution body and the main frequencies of the processors are different, the target processor that matches the target code can be determined according to the response level of each application program, and then the target code can be run through the matching target processor.

[0128] By selecting the processor, a processor matching the target application can be determined, thereby improving the running speed of the preset application.

[0129] In one embodiment, the target code includes multiple sub-target codes corresponding to different functions; the sub-target codes have their own corresponding response levels.

[0130] The target processor that matches the target code to be run is determined based on the response level, including:

[0131] Based on the response level of the sub-target code, determine the target processor that matches the running sub-target code.

[0132] For each function in each preset application, each function corresponds to a sub-target code, and the running of these sub-target codes can also be executed by a processor that matches these sub-target codes, thereby improving the running and processing speed of the sub-target code.

[0133] In one embodiment, in the virtualized operating environment, such as a WASM container, the processor is supported to read data in storage, that is, the processor can read data in memory and storage respectively, and the reading speeds of the two are different.

[0134] In one embodiment, determining whether to update the first storage location to the second storage location may include:

[0135] When the terminal device where the operating environment is located is turned off or the system is restarted, the first storage location is updated to the second storage location, and the reference information is updated. This can reduce the impact on the normal operation of the target code caused by updating the first storage location and reference information during the process of running the preset application corresponding to the target code, thereby improving the user experience.

[0136] In one embodiment, reference Figure 4 , is a schematic diagram of an information processing device, the device comprising:

[0137] A first acquisition module 1 is used to acquire a current first storage location and reference information of a target code; wherein the target code is obtained by compiling a source code of a preset application program;

[0138] A second acquisition module 2 is used to acquire the operation information of the target code within a preset period, wherein the operation information at least includes the frequency information of the target code being run and / or the power consumption information during the process of running the target code;

[0139] The updating module 3 is used to determine whether to update the first storage location to a second storage location according to the operation information; wherein the reading and writing speeds of the first storage location and the second storage location are different.

[0140] In another embodiment, the target code includes sub-target codes corresponding to a plurality of different functions;

[0141] A first acquisition module 1 is used to acquire the current first storage location of each sub-target code and the current first information of the sub-target code;

[0142] A second acquisition module 2 is used to acquire the frequency information of each sub-target code within the preset period;

[0143] Update module 3 is used to determine whether to update the first storage location of the sub-target code to a second storage location based on the running information of the sub-target code.

[0144] In another embodiment, the read and write speed of the first storage location is less than the read and write speed of the second storage location; the target code further has reference information, the reference information comprising: first information associated with frequency, and / or, second information associated with power consumption;

[0145] Update module 3, for at least one of the following:

[0146] If the frequency corresponding to the frequency information is greater than the frequency corresponding to the first information, the first storage location is updated to the second storage location;

[0147] If the frequency corresponding to the frequency information is less than the frequency corresponding to the first information, the first storage position is maintained unchanged;

[0148] If the power consumption corresponding to the power consumption information is greater than the power consumption corresponding to the second information, then the first storage location is updated to the second storage location;

[0149] If the power consumption corresponding to the power consumption information is less than the power consumption corresponding to the second information, the first storage location is maintained unchanged.

[0150] In another embodiment, the read and write speed of the first storage location is greater than the read and write speed of the second storage location; the target code further has reference information, the reference information includes: first information associated with frequency, and / or, second information associated with power consumption;

[0151] Update module 3, for at least one of the following:

[0152] If the frequency corresponding to the frequency information is less than the frequency corresponding to the first information, the first storage location is updated to the second storage location;

[0153] If the frequency corresponding to the frequency information is greater than the frequency corresponding to the first information, the first storage position is maintained unchanged;

[0154] If the power consumption corresponding to the power consumption information is less than the power consumption corresponding to the second information, then the first storage location is updated to the second storage location;

[0155] If the power consumption corresponding to the power consumption information is greater than the power consumption corresponding to the second information, the first storage location is maintained unchanged.

[0156] In another embodiment, the apparatus further comprises:

[0157] A deletion module is used to delete the target code when the frequency corresponding to the frequency information is less than the frequency corresponding to the first information within N consecutive preset periods; wherein N is a preset positive integer.

[0158] In another embodiment, the update module 3 is further used for:

[0159] updating the first information according to the frequency information;

[0160] and / or;

[0161] The second information is updated according to the power consumption information.

[0162] In another embodiment, the second acquisition module 2 includes:

[0163] A detection unit, used to detect a user input operation related to running the preset application;

[0164] An acquiring unit is used to acquire the frequency information determined according to the user input operation.

[0165] In another embodiment, the apparatus further comprises:

[0166] A compiling module, used for compiling the source code of the preset application to obtain the target code;

[0167] An allocation module is used to allocate an initial storage location and initial operation information for the target code; wherein the initial operation information includes: initial frequency information at which the target code is run and / or initial power consumption information during the process of running the target code.

[0168] In another embodiment, the first storage location is a location in memory and the second storage location is a location in storage;

[0169] or,

[0170] The second storage location is a location in memory, and the first storage location is a location in storage.

[0171] In another embodiment, the apparatus further comprises:

[0172] A corresponding level acquisition module is used to acquire a response level; the response level is the speed level of obtaining the operation result by running the target code;

[0173] A processor determination module, used to determine a target processor matching the pre-described target code according to the response level; wherein the main frequency of the target processor is positively correlated with the response level;

[0174] An execution module is used to execute the target code through the target processor.

[0175] In another embodiment, the target code includes a plurality of sub-target codes corresponding to different functions; the sub-target codes correspond to respective response levels;

[0176] A processor determination module is used to determine a target processor that matches the sub-target code according to the response level of the sub-target code.

[0177] In another embodiment, a container is provided, comprising:

[0178] A processor and a memory for storing executable instructions capable of running on the processor, wherein:

[0179] When the processor is used to run the executable instructions, the executable instructions execute the method described in any one of claims 1 to 12 above.

[0180] In another embodiment, an electronic device is provided, including:

[0181] A processor and a memory for storing executable instructions capable of running on the processor, wherein:

[0182] When the processor is used to run the executable instructions, the executable instructions execute the method described in any one of the above embodiments.

[0183] In another embodiment, a non-transitory computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the method described in any of the above embodiments is implemented.

[0184] In another embodiment, another information processing method is provided.

[0185] 1. Compile the source code of the preset application to obtain the target code, including: converting the source code into the target machine code or the mapping code that can be interpreted and executed in the WebAssembly container during the compilation stage. The mapping code obtained here can be the code that can be interpreted and executed by the interpreter in the WebAssembly container.

[0186] 2. Allocate initial storage location and initial information for target code, including: support specifying base address and description according to strategy when transcoding in LLVM compilation framework, initial storage location includes initial base address, initial information includes initial description. Strategy includes method of dynamically generating base address at runtime, method of allocating base address in different types of memory and storage, and description of performance response requirements for the content of such base address, where performance response requirements may include call usage frequency.

[0187] 3. You can also check whether each storage location in the bitmap policy memory is used for the content allocated at the base address. During use, you can check whether the attributes and content of these points have changed, and identify whether the logic running in WebAssembly is running normally.

[0188] 4. During the operation of the WebAssembly system, the WebAssembly container can identify the performance response requirements marked at compile time, and can dynamically predict the frequent use of users based on the base address usage frequency, or combined with user interaction information, and logically deploy and load the frequently executed WebAssembly segments in the system into memory. The target code includes the WebAssembly segments here.

[0189] 5. For WebAssembly segments that are not frequently used and the user does not require the provided logical response, the logic is deployed to the storage, and direct storage access by the processor is supported during system operation.

[0190] 6. Supports dynamic updates of the locations deployed in memory and storage during policy runtime and restart.

[0191] Applications and services running in WebAssembly containers can enhance the security provided by isolation while expanding the scope of application sizes and executable application programming languages ​​supported by constrained systems, and the system can balance the time and space balance of access execution for running logic in WebAssembly.

[0192] Embedded devices have limited memory and storage resources. In order to support rich categories and consistent applications with high performance, security and reliability, this case proposes to use a customized WebAssembly container to support applications in various programming languages ​​to be converted into target machine code during the compilation phase, and can be redirected to dynamically planned storage and memory with security mechanism checks. During system operation, for WebAssembly segments with high performance response requirements and predicted frequent use by users and frequent execution by the system, the logic deployment is loaded in the memory, and for WebAssembly segments that are not frequently used and users have no requirements for the provided logic response, the logic is deployed in the storage. During system operation, the processor is supported to directly access storage. Applications and services running in WebAssembly can enhance the security brought by isolation. At the same time, the limited system supports the deployment of more capable application sizes and the range of executable application programming languages. The system can balance the time and space balance of running logic access execution in WebAssembly, enhance the security of system execution of WebAssembly, expand the support for more WebAssembly application capabilities of limited resource devices, and bring users a rich and smooth experience.

[0193] It should be noted that the “first” and “second” in the embodiments of the present disclosure are only for the convenience of description and distinction and have no other specific meanings.

[0194] Figure 5 1 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0195] Reference Figure 5 , the electronic device may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0196] The processing component 802 generally controls the overall operation of the electronic device, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0197] The memory 804 is configured to store various types of data to support the operation of the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0198] The power component 806 provides power to various components of the electronic device. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device.

[0199] The multimedia component 808 includes a screen that provides an output interface between the electronic device and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0200] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0201] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0202] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device. For example, the sensor assembly 814 can detect the open / closed state of the electronic device, the relative positioning of components, such as the display and keypad of the electronic device, and the sensor assembly 814 can also detect the position change of the electronic device or a component of the electronic device, the presence or absence of user contact with the electronic device, the orientation or acceleration / deceleration of the electronic device and the temperature change of the electronic device. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0203] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device and other devices. The electronic device can access a wireless network based on a communication standard, such as Wi-Fi, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0204] In an exemplary embodiment, the electronic device may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above methods.

[0205] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0206] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. An information processing method, characterized in that: include: Obtaining a current first storage location of the target code; wherein the target code is obtained by compiling the source code of the preset application program; Acquire the operation information of the target code within a preset period, wherein the operation information at least includes the frequency information of the target code being run and / or the power consumption information during the process of running the target code; According to the operation information, determine whether to update the first storage location to a second storage location; wherein the first storage location and the second storage location have different read and write speeds.

2. The method according to claim 1, characterized in that The target code includes sub-target codes corresponding to a plurality of different functions; The obtaining of the current first storage position of the target code comprises: obtaining the current first storage position of each of the sub-target codes; The obtaining of the operation information of the target code within the preset period includes: obtaining the operation information of each of the sub-target codes within the preset period; The determining whether to update the first storage location to the second storage location includes: determining whether to update the first storage location of the sub-target code to the second storage location based on the running information of the sub-target code.

3. The method according to claim 1, characterized in that: The read and write speed of the first storage location is lower than the read and write speed of the second storage location; the target code further has reference information, the reference information includes: first information associated with frequency, and / or, second information associated with power consumption; The determining whether to update the first storage location to the second storage location comprises at least one of the following: If the frequency corresponding to the frequency information is greater than the frequency corresponding to the first information, the first storage location is updated to the second storage location; If the frequency corresponding to the frequency information is less than the frequency corresponding to the first information, the first storage position is maintained unchanged; If the power consumption corresponding to the power consumption information is greater than the power consumption corresponding to the second information, then the first storage location is updated to the second storage location; If the power consumption corresponding to the power consumption information is less than the power consumption corresponding to the second information, the first storage location is maintained unchanged.

4. The method according to claim 1, characterized in that The read and write speed of the first storage location is greater than the read and write speed of the second storage location; the target code further has reference information, the reference information includes first information associated with frequency and second information associated with power consumption; The determining whether to update the first storage location to the second storage location comprises at least one of the following: If the frequency corresponding to the frequency information is less than the frequency corresponding to the first information, the first storage location is updated to the second storage location; If the frequency corresponding to the frequency information is greater than the frequency corresponding to the first information, the first storage position is maintained unchanged; If the power consumption corresponding to the power consumption information is less than the power consumption corresponding to the second information, then the first storage location is updated to the second storage location; If the power consumption corresponding to the power consumption information is greater than the power consumption corresponding to the second information, the first storage location is maintained unchanged.

5. The method according to claim 4, characterized in that The method further comprises: In a case where the frequency corresponding to the frequency information is less than the frequency corresponding to the first information within N consecutive preset periods, the target code is deleted; wherein N is a preset positive integer.

6. The method according to claim 3 or 4, characterized in that: The method further comprises: updating the first information according to the frequency information; and / or; The second information is updated according to the power consumption information.

7. The method according to claim 1, characterized in that The obtaining the operation information of the target code within a preset period includes: Detecting a user input operation related to running the preset application; The frequency information determined according to the user input operation is acquired.

8. The method according to claim 1, characterized in that The method further comprises: Compiling the source code of the preset application to obtain the target code; An initial storage location and initial operation information are allocated to the target code; wherein the initial operation information includes: initial frequency information at which the target code is run and / or initial power consumption information during the process of running the target code.

9. The method according to claim 1, characterized in that: The first storage location is a location in memory, and the second storage location is a location in storage; or, The second storage location is a location in memory and the first storage location is a location in storage.

10. The method according to claim 1, characterized in that The method further comprises: Obtaining a response level; the response level is the speed level of obtaining the operation result by running the target code; Determine a target processor that matches the target code according to the response level; wherein the main frequency of the target processor is positively correlated with the response level; The target code is executed by the target processor.

11. The method according to claim 10, characterized in that The target code includes a plurality of sub-target codes corresponding to different functions; the sub-target codes correspond to their respective response levels; The step of determining a target processor that matches the target code according to the response level includes: Based on the response level of the sub-target code, a target processor that matches the execution of the sub-target code is determined.

12. An information processing device, characterized in that: include: A first acquisition module, used to acquire a current first storage location of the target code; wherein the target code is obtained by compiling the source code of the preset application program; A second acquisition module is used to acquire the operation information of the target code within a preset period, wherein the operation information at least includes the frequency information of the target code being run and / or the power consumption information during the process of running the target code; An update module is used to determine whether to update the first storage location to a second storage location according to the operation; wherein the read and write speeds of the first storage location and the second storage location are different.

13. A container, characterized in that: include: A processor and a memory for storing executable instructions capable of running on the processor, wherein: When the processor is used to run the executable instructions, the executable instructions execute the method described in any one of claims 1 to 11 above.

14. An electronic device, characterized in that: include: A processor and a memory for storing executable instructions capable of running on the processor, wherein: When the processor is used to run the executable instructions, the executable instructions execute the method described in any one of claims 1 to 11 above.

15. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the method described in any one of claims 1 to 11.