Information processing method and device

By receiving information reload requests, determining and updating memory storage information, the problem of restarting application files in the prior art needs to be solved, improving efficiency and ensuring user experience.

CN114489731BActive Publication Date: 2025-08-22ZHUHAI KINGSOFT ONLINE GAME TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210096600.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-26
Publication Date
2025-08-22
Estimated Expiration
2042-01-26

AI Technical Summary

Technical Problem

The prior art requires restarting the application when modifying or updating application files, resulting in inefficiency and affecting the user experience.

Method used

By receiving information reload requests, the memory storage information and local storage information are determined, the target memory information is extracted and the memory storage information is updated, and the information that does not need to be modified is retained to achieve the overload of the target object.

Benefits of technology

Without restarting the application, keeping information updates not lost, improving the efficiency of file modification or update and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114489731B_ABST
    Figure CN114489731B_ABST
Patent Text Reader

Abstract

The present application provides an information processing method and device, wherein the information processing method includes: receiving an information reload request for a target object; determining memory storage information corresponding to the target object in the memory based on the information reload request; extracting target memory information from the memory storage information, and determining target local information in the local storage information of the target object; and updating the memory storage information based on the target memory information and the target local information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to an information processing method and apparatus, a computing device, and a computer-readable storage medium. Background Art

[0002] With the development of the internet, application updates and iterations are becoming increasingly rapid. Consequently, it's common to need to modify or update various files within running applications. Currently, modifying or updating these files typically requires restarting the application, significantly reducing the efficiency of file modifications or updates. Furthermore, restarting the application can render the application unavailable to users, reducing the user experience. Therefore, there is an urgent need to provide a solution to these problems. Summary of the Invention

[0003] In view of this, embodiments of the present application provide an information processing method and apparatus, a computing device, and a computer-readable storage medium to address the technical deficiencies in the prior art.

[0004] According to a first aspect of an embodiment of the present application, there is provided an information processing method, including:

[0005] Receive information reload request of target object;

[0006] Determining memory storage information corresponding to the target object in memory based on the information reload request;

[0007] Extracting target memory information from the memory storage information, and determining target local information from the local storage information of the target object;

[0008] The memory storage information is updated based on the target memory information and the target local information.

[0009] Optionally, extracting target memory information from the memory storage information and determining target local information from the local storage information of the target object includes:

[0010] Extracting target memory information from the memory storage information according to a preset extraction rule;

[0011] According to a preset determination rule, target local information is determined in the local storage information of the target object.

[0012] Optionally, determining the target local information in the local storage information of the target object according to a preset determination rule includes:

[0013] Comparing the target memory information with the local storage information of the target object;

[0014] Target local information is determined in the local storage information of the target object according to the comparison result.

[0015] Optionally, comparing the target memory information with the local storage information of the target object includes:

[0016] Comparing the first sub-information identifier included in the target memory information with the second sub-information identifier in the local storage information;

[0017] Accordingly, determining the target local information in the local storage information of the target object according to the comparison result includes:

[0018] Determine, according to the comparison result, a first target sub-information identifier in the second sub-information identifier other than the first sub-information identifier;

[0019] The storage information matching the first target sub-information identifier is screened from the local storage information of the target object as the target local information.

[0020] Optionally, before updating the memory storage information based on the target memory information and the target local information, the method further includes:

[0021] Determine a second target sub-information identifier other than the second sub-information identifier in the first sub-information identifier according to the comparison result;

[0022] Based on the second target sub-information identifier, screening the target memory information for information to be deleted;

[0023] The information to be deleted is deleted from the target memory information.

[0024] Optionally, receiving the target object's information reload request includes:

[0025] Receive a request to reload the file information of the target file; or

[0026] Receive a function information reload request for a target function in a target file; or

[0027] Receives a request to reload target information in a target file.

[0028] Optionally, updating the memory storage information based on the target memory information and the target local information includes:

[0029] combining the target memory information with the target local information to generate target storage information;

[0030] The memory storage information is updated based on the target storage information.

[0031] Optionally, updating the memory storage information based on the target memory information and the target local information includes:

[0032] releasing, in the memory, information in the memory storage information except the target memory information;

[0033] The target local information is added to the memory.

[0034] Optionally, extracting target memory information from the memory storage information according to a preset extraction rule includes:

[0035] According to a preset information extraction type, target memory information matching the preset information type is extracted from the memory storage information; or

[0036] According to the preset information extraction identifier, target memory information matching the preset information identifier is extracted from the memory storage information.

[0037] Optionally, before receiving the target object's information reload request, the method further includes:

[0038] When a trigger instruction submitted through a preset control is detected, an information reload request for a target object is triggered.

[0039] According to a second aspect of an embodiment of the present application, there is provided an information processing device, including:

[0040] A receiving module configured to receive an information reload request from a target object;

[0041] a determination module configured to determine memory storage information corresponding to the target object in the memory based on the information reload request;

[0042] an extraction module configured to extract target memory information from the memory storage information and determine target local information from the local storage information of the target object;

[0043] An update module is configured to update the memory storage information based on the target memory information and the target local information.

[0044] According to a third aspect of an embodiment of the present application, a computing device is provided, comprising a memory, a processor, and computer instructions stored in the memory and executable on the processor, wherein the processor implements the steps of the information processing method when executing the computer instructions.

[0045] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores computer instructions, and when the computer instructions are executed by a processor, the steps of the information processing method are implemented.

[0046] In an embodiment of the present application, after receiving an information reload request for a target object, the memory storage information corresponding to the target object in the memory is determined based on the information reload request; and the target memory information is extracted from the memory storage information, and the target memory information is used as information that needs to remain unchanged when the target object is reloaded. Target local information is determined in the local storage information of the target object, and the target local information is used as information to be reloaded when the target object is reloaded; the memory storage information is updated based on the target memory information and the target local information. This achieves the reloading of the target object on the basis of retaining a portion of information in the memory storage information of the target object without modification. This avoids the loss of updates to the target storage information during operation when the target object is reloaded. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 is a structural block diagram of a computing device provided in one embodiment of the present application;

[0048] Figure 2 is a flowchart of an information processing method provided by an embodiment of the present application;

[0049] Figure 3 This is a processing flow chart of an information processing method applied to Lua scripts provided by an embodiment of the present application;

[0050] Figure 4 It is a structural diagram of an information processing device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0051] The following description sets forth many specific details to facilitate a thorough understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the scope of the present application. Therefore, the present application is not limited to the specific implementations disclosed below.

[0052] The terms used in one or more embodiments of the present application are for the purpose of describing specific embodiments only and are not intended to limit one or more embodiments of the present application. The singular forms "a", "the" and "the" used in one or more embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in one or more embodiments of the present application refers to and includes any or all possible combinations of one or more associated listed items.

[0053] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present application, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of one or more embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0054] First, the terms involved in one or more embodiments of the present invention are explained.

[0055] Lua scripts are scripts written in the Lua language. Lua scripts can be used not only as extended scripts but also as common configuration files, replacing file formats like XML and INI. They are easier to understand and maintain. This application provides an information processing method and apparatus, a computing device, and a computer-readable storage medium, each of which is described in detail in the following embodiments.

[0056] Figure 1 1 shows a block diagram of a computing device 100 according to an embodiment of the present application. Components of the computing device 100 include, but are not limited to, a memory 110 and a processor 120. The processor 120 is connected to the memory 110 via a bus 130, and a database 150 is used to store data.

[0057] The computing device 100 also includes an access device 140 that enables the computing device 100 to communicate via one or more networks 160. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 140 may include one or more of any type of network interface (e.g., a network interface card (NIC)), whether wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a Worldwide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.

[0058] In one embodiment of the present application, the above components of the computing device 100 and Figure 1 Other components not shown in the figure may also be connected to each other, for example, via a bus. Figure 1 The computing device structure block diagram shown is for illustrative purposes only and is not intended to limit the scope of the present application. Those skilled in the art may add or replace other components as needed.

[0059] The computing device 100 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook computer, etc.), a mobile phone (e.g., a smartphone), a wearable computing device (e.g., a smartwatch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 100 may also be a mobile or stationary server.

[0060] The processor 120 may execute Figure 2 The steps in the information processing method shown. Figure 2 The flowchart of the information processing method according to an embodiment of the present application is shown, which specifically includes the following steps:

[0061] Step 202: Receive an information reload request from a target object.

[0062] The target object can be understood as a file (e.g., script file, configuration file, model file, etc.) or information (e.g., description information, communication information, price information, accessory information, image information, etc.) called or read by an application in a computing device during operation, without limitation. In actual applications, some applications (e.g., games, shopping, car rental, instant messaging, etc.) will load some files or information into memory during operation to support the operation of the application. Therefore, in this case, it can be understood that these files or information are in a running state.

[0063] Correspondingly, an information reload request refers to a request to reload the target object. Since the target object has been loaded into the memory, if the target object needs to be manually modified during the operation of the application, and the manually modified target object is used in the application. It may be necessary to restart the application and reload the target object during the restart process. This process is not only complicated, but also affects the user experience. In addition, during the operation of the application, there may be modifications to these target objects. If the manually modified target object is directly reloaded without restarting, the modifications to the target object made by the application during operation will be lost. Therefore, the information processing method provided in the embodiment of the present application retains the information that may be modified by the application during the process of reloading the target object, and then loads the information that may be manually modified. The efficiency of loading the target object is guaranteed, and the security of the data during the reloading process is guaranteed.

[0064] Considering the need to reload the target object, it is necessary to send an information reload request for the target object. In order to improve the convenience of the reload operation and simplify the reload process, a control that triggers the reload can be pre-made. The sending of the information reload request is directly triggered by the preset control. The embodiment of the present application is specifically implemented in the following manner:

[0065] When a trigger instruction submitted through a preset control is detected, a request for reloading information of a target object is triggered;

[0066] Among them, the preset control refers to a control that is pre-set to submit a trigger instruction. Specifically, the control can be a physical control (such as a physical keyboard key or button), or a virtual control such as a virtual button or link, which is not limited here. During specific implementation, the user can submit a trigger instruction by clicking, pressing or touching the preset control, thereby triggering an information reload request for the target object. Accordingly, the trigger instruction refers to an instruction that triggers an information reload request.

[0067] In specific implementations, to prevent accidental operations, an unlock key can be provided to unlock the triggering operation of the preset control. This unlock key can also be a physical key or a virtual key. When unlocked, even if the user operates the preset control, it will not trigger a request to reload the information of the target object.

[0068] Assume that the preset control is: shortcut key P. When the game program is running, if it is detected that the user presses the shortcut key P, a script information reload request for the script file A in the game program is sent.

[0069] In summary, triggering an information reload request for a target object through a preset control improves the convenience of triggering an information reload request and enhances the user experience of information reloading.

[0070] Furthermore, considering the diversity of target objects, in order to achieve diversified reloading of various target objects and improve the flexibility of information reloading, in the embodiment of the present application, the receiving of the information reloading request of the target object is specifically implemented in the following manner:

[0071] Receive a request to reload the file information of the target file; or

[0072] Receive a function information reload request for a target function in a target file; or

[0073] Receives a request to reload target information in a target file.

[0074] In a specific implementation, the target object can be all file information of the target file, or at least one function contained in the target file. In addition, the target object can also be information (i.e., target information) filtered out according to preset filtering conditions in the target file. For example, the target information can be information filtered out from lines n to m in the target file, or information describing a certain function point filtered out in the target file, etc., without limitation herein.

[0075] The target file can be all files in a folder, or a specific type of file (such as script type, image type, text type, etc.) in a folder, without limitation. Accordingly, a file information reload request can be understood as a request to reload the file content of the target file. A function information reload request can be understood as a request to reload the target function in the target file. A target information information reload request can be understood as a request to reload the target information in the target file.

[0076] For example, accept the function information reloading request of user U for all functions in the script file A in the game program.

[0077] In summary, receiving an information reloading request for a target file / target function in a target file / target information in a target file increases the flexibility and diversity of information reloading.

[0078] Step 204: Based on the information reload request, determine the memory storage information corresponding to the target object in the memory.

[0079] Specifically, upon receiving the information reload request, since the target object has already been loaded into the memory, corresponding information (i.e., memory storage information) exists in the memory for the target object. Based on the memory storage information corresponding to the target object in the memory, information that may have been updated during the execution of the program can be further determined.

[0080] For example, upon receiving a script information reloading request for a script file A in a game program triggered by a user U, the memory storage information A1 corresponding to the script file A in the memory is determined.

[0081] Step 206: extract target memory information from the memory storage information, and determine target local information from the local storage information of the target object.

[0082] Specifically, on the basis of determining the memory storage information corresponding to the target object in the memory, considering that some information of the target object in the memory may be modified or updated during the operation process, it is necessary to extract this part of information (target memory information) from the memory storage information so that it will not be modified during the reloading process. In addition, since it is necessary to ensure that this part of information is not modified during the reloading process, it may not be possible to load all the contents of the target object. This is to prevent the loaded information from overwriting this part of the information in the memory, thereby causing the loss or change of information. Therefore, it is necessary to determine the target local information in the current storage information of the target object.

[0083] It should be noted that protecting the target memory information from modification means that the existing content in the target memory information cannot be modified, such as changing A=5 to A=4. However, the target memory information can be added or deleted according to actual needs, and this is not limited here.

[0084] The local storage information can be understood as the local corresponding information of the target object. Correspondingly, the target local information can be understood as the information that needs to be reloaded in the local storage information.

[0085] In specific implementation, different types of target objects may have different information that needs to be retained and modified. In order to ensure the accuracy of information reloading, the embodiment of the present application extracts the target memory information from the memory storage information and determines the target local information from the local storage information of the target object, which is specifically achieved in the following manner:

[0086] Extracting target memory information from the memory storage information according to a preset extraction rule;

[0087] According to a preset determination rule, target local information is determined in the local storage information of the target object.

[0088] The preset extraction rule refers to a pre-set rule for extracting target memory information from the memory storage information. Specifically, the preset extraction rule can be diverse. For example, the preset extraction rule can be a rule for extracting private variables from the memory storage information, a rule for extracting public functions, a rule for extracting preset type information, or a rule for extracting information carrying a preset identifier, etc., without limitation herein.

[0089] A preset determination rule refers to a pre-set rule for determining the target local information within the local storage information. Specifically, the preset determination rule may be determining whether the local storage information contains modified information, or determining whether the local storage information contains information that differs from the target memory information. Furthermore, the preset determination rule may also be determining information of a preset type within the local storage information, or determining information carrying a preset identifier, etc., without limitation herein.

[0090] Furthermore, according to the preset extraction rules, the target memory information is extracted from the memory storage information, which is specifically achieved in the following manner:

[0091] According to a preset information extraction type, target memory information matching the preset information type is extracted from the memory storage information; or

[0092] According to the preset information extraction identifier, target memory information matching the preset information identifier is extracted from the memory storage information.

[0093] Among them, the preset information extraction type refers to the information type that is preset to extract information from the memory storage information. In actual applications, the preset information extraction type is usually related to the object type of the target object. For example, when the target object is a script file, when it is in the running state, the functions therein usually will not be modified, but the attribute information therein (the variable value of the variable) will be modified. Therefore, the preset information extraction type can be set to the attribute type, so that the attribute type information can be extracted from the memory storage information of the script file. For another example, when the target object is a configuration file, when it is in the running state, the configurable items therein usually can be modified. Therefore, the preset information extraction type can be set to the configurable type, so that the configurable type information can be extracted from the memory storage information of the configuration file.

[0094] In addition, the target memory information can be extracted based on a preset information extraction identifier. The preset information extraction identifier refers to a pre-set information identifier for extracting information from the memory stored information. The information identifier refers to an identifier that uniquely identifies a piece of information, such as the name of the information or the code of the information, and is not limited here.

[0095] Continuing with the above example, when the preset information extraction type is the attribute type, the attribute information in the memory storage information A1 of the script file A is extracted as the target memory information B1.

[0096] In summary, extracting target memory information according to preset information extraction type / or preset information increases the diversity and flexibility of extracting target memory information and also ensures the accuracy of extracting target memory information.

[0097] Since when reloading the target object, if the content corresponding to the target memory information that needs to be retained is also reloaded, it may cause the information to be modified or lost. Therefore, in order to avoid this problem, the target local information to be reloaded in the local storage information can be determined by comparing the target memory information with the local storage information. In the embodiment of the present application, this can be achieved by executing the following steps 2062-2064:

[0098] Step 2062: Compare the target memory information with the local storage information of the target object.

[0099] Specifically, by comparing the target memory information with the local storage information of the target object, it is possible to determine which information in the local storage information is not present in the target memory information, so that when reloading the target object, this information is reloaded.

[0100] Considering that the target memory information and the local storage information may contain different contents of the same information (for example, the value of a in the target memory information is 3, while the value of a in the local storage information is 2). In this case, the information contained in the local storage information may be old information before the operation. In order to ensure that the update of the target object remains unchanged during the operation, this information cannot be used as information to be reloaded. Therefore, not any difference between the two needs to be used as information to be reloaded. In order to achieve an effective comparison between the two, the target memory information is compared with the local storage information of the target object, which is specifically achieved in the following way:

[0101] The first sub-information identifier included in the target memory information is compared with the second sub-information identifier in the local storage information.

[0102] The first sub-information identifier is the identifier of the information contained in the target memory information. Correspondingly, the second sub-information identifier is the identifier of the information contained in the local storage information. By comparing the two, the difference between the information contained in the two can be determined.

[0103] Continuing with the previous example, assume that the attribute information extracted from the target memory information B1 of script file A includes a=3 and b=5. The local storage information A2 corresponding to script file A includes a=2 and method f. The first sub-information of the attribute information is identified by a and b, while the second sub-information of the local storage information A2 is identified by a and f. By comparing the two, we can identify the differences between the target memory information B1 and the local storage information A2.

[0104] Step 2064: Determine target local information in the local storage information of the target object according to the comparison result.

[0105] Specifically, based on the comparison of the first sub-information identifier and the second sub-information identifier, determining the target local information in the local storage information of the target object according to the comparison result is specifically achieved in the following manner:

[0106] Determine, according to the comparison result, a first target sub-information identifier in the second sub-information identifier other than the first sub-information identifier;

[0107] The storage information matching the first target sub-information identifier is screened from the local storage information of the target object as the target local information.

[0108] The first target sub-information identifier can be understood as the information identifier of the additional information between the local storage information and the target memory information. Furthermore, based on the information identifier, the information not included in the target memory information can be filtered out from the local storage information as the target local information.

[0109] Using the above example, based on the comparison result, it can be determined that the first target sub-information identifier included in the second sub-information identifier in addition to the first sub-information identifier is f. The information corresponding to the first target sub-information identifier f in the local storage information A2 is used as the target local information B2.

[0110] In summary, by filtering out information not included in the target memory information from the local storage information and using it as the target local information, the information other than the information that is expected to remain unchanged is reloaded, thereby avoiding modification of the target memory information.

[0111] In addition, considering that the target memory information may be deleted in the local storage information, in order to achieve the deletion of the target memory information during the reload process, the embodiment of the present application is specifically implemented in the following manner:

[0112] Determine a second target sub-information identifier other than the second sub-information identifier in the first sub-information identifier according to the comparison result;

[0113] Based on the second target sub-information identifier, screening the target memory information for information to be deleted;

[0114] The information to be deleted is deleted from the target memory information.

[0115] Specifically, the second target sub-information identifier can be understood as an information identifier indicating the excess information between the target memory information and the locally stored information. Furthermore, based on this information identifier, the target memory information can be screened for information not included in the locally stored information as information to be deleted. Furthermore, this information to be deleted is deleted from the target memory information.

[0116] Continuing with the above example, based on the comparison results, we can determine that the second target sub-information identifier included in the first sub-information identifier, in addition to the second sub-information identifier, is b. The information corresponding to this second target sub-information identifier b in target memory information B2 is then used as information to be deleted B3. Information B3 is deleted from target memory information B2 to obtain the updated target memory information.

[0117] In summary, by screening out information not included in the local storage information from the target memory information as information to be deleted, deletion processing of the target memory information is achieved to adapt to the scenario where the target memory information needs to be deleted.

[0118] Step 208: Update the memory storage information based on the target memory information and the target local information.

[0119] Specifically, based on the above extraction of target memory information and determination of target local information, it is necessary to implement reloading of the target object through these two types of information.

[0120] In the specific implementation, it is considered that there may be a certain structural association between the target memory information and the target local information. And the two kinds of information are overloaded as a whole, so it is necessary to combine the two kinds of information. In the embodiment of the present application, the updating of the memory storage information based on the target memory information and the target local information is achieved by the following method:

[0121] combining the target memory information with the target local information to generate target storage information;

[0122] The memory storage information is updated based on the target storage information.

[0123] Specifically, combining the target memory information and the target local information can be done by simply concatenating the two. Alternatively, the various information contained in the two can be combined in a predetermined order, without limitation. Accordingly, the target storage information is the information formed by combining the target memory information and the target local information.

[0124] Furthermore, updating the memory storage information based on the target storage information can be understood as replacing the memory storage information in the memory with the target storage information, that is, releasing the memory storage information originally stored in the memory and then writing the target storage information into the memory.

[0125] In summary, the target memory information and the target local information are combined to generate the target memory information for updating the memory storage information, thereby achieving the replacement of the memory storage information in the memory.

[0126] In addition, considering that replacing the entire memory storage information may require more computing resources, the embodiment of the present application directly updates the memory storage information based on the target memory information and the target local information, including:

[0127] releasing, in the memory, information in the memory storage information except the target memory information;

[0128] The target local information is added to the memory.

[0129] For example, the memory storage information A1 includes object information A3 in addition to the target memory information B1. The object information A3 is released from the memory, and then the target local information B2 is added to the memory.

[0130] In summary, the information stored in the memory except the target memory information is released in the memory, thus releasing the information that does not need to be retained. On this basis, the target local information is added to the memory, thus achieving the selective reloading of the target object.

[0131] The information processing method provided by the embodiment of the present application, after receiving the information reloading request of the target object, determines the memory storage information corresponding to the target object in the memory based on the information reloading request; and extracts the target memory information from the memory storage information, and uses the target memory information as the information that needs to remain unchanged when reloading the target object. And determines the target local information in the local storage information of the target object, and uses the target local information as the information to be reloaded when reloading the target object; updates the memory storage information based on the target memory information and the target local information. It realizes reloading of the target object on the basis of retaining a part of the information in the memory storage information of the target object without modification. It avoids losing the update of the target storage information during operation when reloading the target object.

[0132] The following combined Figure 3 , taking the application of the information processing method provided by this application in Lua script as an example, the information processing method is further explained. Figure 3 A processing flow chart of an information processing method applied to Lua scripts provided in one embodiment of the present application is shown, which specifically includes the following steps:

[0133] Step 302: When a trigger instruction submitted through a preset control is detected, an information reload request for the Lua script in the running state is triggered.

[0134] Step 304: Receive the information reload request of the Lua script.

[0135] Step 306: Based on the information reload request, determine the memory storage information corresponding to the Lua script in the memory.

[0136] Step 308: Extract attribute information of the attribute type from the memory storage information.

[0137] Step 310: Compare the attribute name of the attribute information with the information name in the local storage information of the Lua script.

[0138] Specifically, the information name includes the attribute name of the attribute contained in the local storage information of the Lua script and the function name of the function (method) contained in the Lua script.

[0139] Step 312: According to the comparison result, determine the first target information name excluding the attribute name in the information name.

[0140] Specifically, the first target information name includes: attribute names in the local storage information of the Lua script that are newly added compared to the attribute names in the memory storage information, and all function names in the local storage information.

[0141] Step 314: Filter the local storage information of the Lua script to obtain storage information that matches the first target information name as the target local information.

[0142] Step 316: Determine the second target information name other than the information name in the attribute name according to the comparison result.

[0143] Specifically, the second target information name includes an attribute name that is deleted from the attribute name contained in the local storage information compared to the attribute name contained in the memory storage information.

[0144] Step 318: Filter the target memory information for information to be deleted that matches the second target information name.

[0145] Specifically, the attribute information that has been deleted in the local storage information is filtered in the target memory information as the information to be deleted.

[0146] Step 320: Delete the information to be deleted from the target memory information.

[0147] Step 322: Combine the deleted target memory information with the target local information to generate target memory information.

[0148] Step 324: Release the memory storage information and write the target memory information into the memory.

[0149] The information processing device provided by the embodiment of the present application, after receiving an information reload request of a Lua script in a running state, determines the memory storage information corresponding to the Lua script in the memory based on the information reload request; and extracts the target memory information from the memory storage information, and uses the target memory information as the information that needs to remain unchanged when reloading the target object. And determines the target local information in the local storage information of the Lua script, and uses the target local information as the information to be reloaded when reloading the target object; updates the memory storage information based on the target memory information and the target local information. It realizes reloading of the Lua script on the basis of retaining the attribute information in the memory storage information of the Lua script. It avoids the loss of the update of the attribute information of the Lua script during the running process when the Lua script is reloaded.

[0150] Corresponding to the above method embodiment, the present application also provides an information processing device embodiment, Figure 4 FIG. 1 shows a schematic diagram of the structure of an information processing device provided by an embodiment of the present application. Figure 4 As shown, the device includes:

[0151] Receiving module 402, configured to receive an information reload request of a target object;

[0152] The determination module 404 is configured to determine the memory storage information corresponding to the target object in the memory based on the information reload request;

[0153] An extraction module 406 is configured to extract target memory information from the memory storage information, and determine target local information in the local storage information of the target object based on the target memory information;

[0154] The updating module 408 is configured to update the memory storage information based on the target memory information and the target local information.

[0155] Optionally, the extraction module 406 includes:

[0156] An information extraction submodule is configured to extract target memory information from the memory storage information according to a preset extraction rule;

[0157] The information determination submodule is configured to determine target local information in the local storage information of the target object according to a preset determination rule.

[0158] Optionally, the information determination submodule is further configured to:

[0159] a comparing unit, configured to compare the target memory information with the local storage information of the target object;

[0160] The determining unit is configured to determine target local information in the local storage information of the target object according to the comparison result.

[0161] Optionally, the comparison unit is further configured to:

[0162] Comparing the first sub-information identifier included in the target memory information with the second sub-information identifier in the local storage information;

[0163] Accordingly, the determining unit is further configured to:

[0164] Determine, according to the comparison result, a first target sub-information identifier in the second sub-information identifier other than the first sub-information identifier;

[0165] The storage information matching the first target sub-information identifier is screened from the local storage information of the target object as the target local information.

[0166] Optionally, the information processing device further includes:

[0167] an identification determination module, configured to determine a second target sub-information identification other than the second sub-information identification in the first sub-information identification according to a comparison result;

[0168] a screening module configured to screen information to be deleted from the target memory information based on the second target sub-information identifier;

[0169] The release module is configured to delete the information to be deleted from the target memory information.

[0170] Optionally, the receiving module 402 is further configured to:

[0171] Receive a request to reload the file information of the target file; or

[0172] Receive a function information reload request for a target function in a target file; or

[0173] Receives a request to reload target information in a target file.

[0174] Optionally, the updating module 408 is further configured to:

[0175] combining the target memory information with the target local information to generate target storage information;

[0176] The memory storage information is updated based on the target storage information.

[0177] Optionally, the updating module 408 is further configured to:

[0178] releasing, in the memory, information in the memory storage information except the target memory information;

[0179] The target local information is added to the memory.

[0180] Optionally, the information extraction submodule is further configured to:

[0181] According to a preset information extraction type, target memory information matching the preset information type is extracted from the memory storage information; or

[0182] According to the preset information extraction identifier, target memory information matching the preset information identifier is extracted from the memory storage information.

[0183] Optionally, the information processing device further includes:

[0184] The sending module is configured to trigger an information reload request for the target object when a trigger instruction submitted through a preset control is detected.

[0185] The information processing device provided by the embodiment of the present application, after receiving the information reloading request of the target object, determines the memory storage information corresponding to the target object in the memory based on the information reloading request; and extracts the target memory information from the memory storage information, and uses the target memory information as the information that needs to remain unchanged when reloading the target object. And determines the target local information in the local storage information of the target object, and uses the target local information as the information to be reloaded when reloading the target object; updates the memory storage information based on the target memory information and the target local information. It is achieved that the target object is reloaded on the basis of retaining a part of the information in the memory storage information of the target object without being modified. It avoids the loss of the update of the target storage information during operation when the target object is reloaded.

[0186] The above is a schematic diagram of an information processing device according to this embodiment. It should be noted that the technical solution of the information processing device and the technical solution of the above-mentioned information processing method are based on the same concept. For details not described in detail in the technical solution of the information processing device, please refer to the description of the technical solution of the above-mentioned information processing method.

[0187] In one embodiment of the present application, a computing device is further provided, comprising a memory, a processor, and computer instructions stored in the memory and executable on the processor, wherein the processor implements the steps of the information processing method when executing the computer instructions.

[0188] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above-mentioned information processing method are based on the same concept. For details not described in detail in the technical scheme of the computing device, please refer to the description of the technical scheme of the above-mentioned information processing method.

[0189] An embodiment of the present application further provides a computer-readable storage medium storing computer instructions, which implement the steps of the information processing method described above when executed by a processor.

[0190] The above is a schematic diagram of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of the storage medium and the technical solution of the information processing method described above are based on the same concept. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the information processing method described above.

[0191] The foregoing description describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0192] The computer instructions include computer program code, which may be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium.

[0193] It should be noted that for the aforementioned method embodiments, for ease of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.

[0194] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0195] The preferred embodiments of the present application disclosed above are intended only to help illustrate the present application. The optional embodiments do not describe all details in detail, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and variations can be made based on the content of this application. This application selects and describes these embodiments in detail in order to better explain the principles and practical applications of this application, so that those skilled in the art can better understand and utilize this application. This application is limited only by the claims and their full scope and equivalents.

Claims

1. An information processing method, characterized in that: include: Receiving an information reload request for a target object, wherein the target object is a file or information called or read by an application in a running process in a computing device; Determining memory storage information corresponding to the target object in memory based on the information reload request; Extracting target memory information from the memory storage information, and determining target local information in the local storage information of the target object, wherein the target memory information refers to information that is modified during operation and is not modified during reloading, and the target local information is determined by comparing the target memory information with the local storage information and determining information in the local storage information other than the target memory information; The memory storage information is updated based on the target memory information and the target local information.

2. The information processing method according to claim 1, wherein: The extracting target memory information from the memory storage information and determining target local information from the local storage information of the target object includes: Extracting target memory information from the memory storage information according to a preset extraction rule; According to a preset determination rule, target local information is determined in the local storage information of the target object.

3. The information processing method according to claim 2, wherein: The step of determining the target local information in the local storage information of the target object according to a preset determination rule includes: Comparing the target memory information with the local storage information of the target object; Target local information is determined in the local storage information of the target object according to the comparison result.

4. The information processing method according to claim 3, wherein: The comparing the target memory information with the local storage information of the target object includes: Comparing the first sub-information identifier included in the target memory information with the second sub-information identifier in the local storage information; Accordingly, determining the target local information in the local storage information of the target object according to the comparison result includes: Determine, according to the comparison result, a first target sub-information identifier in the second sub-information identifier other than the first sub-information identifier; The storage information matching the first target sub-information identifier is screened from the local storage information of the target object as the target local information.

5. The information processing method according to claim 4, characterized in that Before updating the memory storage information based on the target memory information and the target local information, the method further includes: Determine a second target sub-information identifier other than the second sub-information identifier in the first sub-information identifier according to the comparison result; Based on the second target sub-information identifier, screening the target memory information for information to be deleted; The information to be deleted is deleted from the target memory information.

6. The information processing method according to claim 1, wherein: The receiving the target object's information reload request includes: Receive a request to reload the file information of the target file; or Receive a function information reload request for a target function in a target file; or Receives a request to reload target information in a target file.

7. The information processing method according to claim 1, wherein: The updating of the memory storage information based on the target memory information and the target local information includes: combining the target memory information with the target local information to generate target storage information; The memory storage information is updated based on the target storage information.

8. The information processing method according to claim 1, wherein: The updating of the memory storage information based on the target memory information and the target local information includes: releasing, in the memory, information in the memory storage information except the target memory information; The target local information is added to the memory.

9. The information processing method according to claim 2, wherein: Extracting target memory information from the memory storage information according to a preset extraction rule includes: According to a preset information extraction type, target memory information matching the preset information extraction type is extracted from the memory storage information; or According to the preset information extraction identifier, target memory information matching the preset information extraction identifier is extracted from the memory storage information.

10. The information processing method according to claim 1, wherein: Before receiving the target object's information reload request, the method further includes: When a trigger instruction submitted through a preset control is detected, an information reload request for a target object is triggered.

11. An information processing device, characterized in that: include: a receiving module configured to receive an information reload request of a target object, wherein the target object is a file or information called or read by an application in a running process in a computing device; a determination module configured to determine memory storage information corresponding to the target object in the memory based on the information reload request; an extraction module configured to extract target memory information from the memory storage information and determine target local information in the local storage information of the target object, wherein the target memory information refers to information that is modified during operation and is not modified during reloading, and the target local information is information other than the target memory information determined by comparing the target memory information with the local storage information; An update module is configured to update the memory storage information based on the target memory information and the target local information.

12. A computing device comprising a memory, a processor, and computer instructions stored in the memory and executable on the processor, wherein: When the processor executes the computer instructions, the steps of the method according to any one of claims 1 to 10 are implemented.

13. A computer-readable storage medium storing computer instructions, characterized in that: When the computer instructions are executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.

14. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Hot updating method and device

    CN105677415A

  • Method and device for updating configuration data

    CN113541987A