Hot updating method and device

A hot update and variable technology, applied in the computer field, can solve problems such as time-consuming, high consumption, and wrong methods for judging whether a person is young, and achieve the effects of avoiding system errors, reducing traffic, and reducing complexity

Active Publication Date: 2016-06-15
NETEASE (HANGZHOU) NETWORK CO LTD
View PDF7 Cites 28 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] However, reload only solves the problem of loading new code, and the old Person object that has been created in the program has not changed. The method of judging whether a person is young in the old Person object is still wrong
Therefore, in order to completely update the problem, it is also necessary to traverse all existing Person objects to refresh the methods and variables in them, which is quite tricky and time-consuming
[0009] At the same time, since all Python scripts with problems need to be pushed, when the problems are distributed in multiple modules or the code volume of the module is large, users need to consume more traffic to obtain the updated scripts
[0010] In addition, using the reload method for hot updates has many limitations for developers

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Hot updating method and device
  • Hot updating method and device
  • Hot updating method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0064] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0065] see figure 1 , is a schematic flowchart of a hot update method provided by an embodiment of the present invention, including steps S1 to S4, specifically as follows:

[0066] S1, detecting whether the currently running program needs to be hot-updated;

[0067] S2. When it is determined that the program needs to be hot-updated, obtain the hot-update execution code from the server; the hot-update execution code includes identification information and update c...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a hot updating method and device. The method comprises the steps that whether a program running at present needs hot updating or not is detected; when it is determined that the program needs hot updating, a hot updating execution code is acquired from a server; the hot updating execution code comprises identification information used for identifying a variable or function needing to be updated in a module of the program and an updated content code used for replacing a local content code of the variable or function needing to be updated in a memory; the hot updating execution code is operated, the variable or function needing to be updated is looked up according to the identification information, and the updated content code replaces the local content code of the variable or function in the memory to update content of the variable or function; when an object created by a module calls the variable or function, the updated content code serves as the content of the variable or function to be operated. According to the method, the hot updating process of a client can be simplified, traffic needed by hot updating is decreased, and limitation that a developer is subjected when the developer writes a hot updating code is reduced.

Description

technical field [0001] The present invention relates to the technical field of computers, in particular to a thermal update method and device. Background technique [0002] In the Internet field, it is often necessary to urgently repair and update modules that have problems in the released clients on the server side to ensure system stability and user experience. [0003] In the prior art, the hot update usually adopts the reload method to reload the problematic modules. Specifically, the developer updates the problematic script module, and pushes the updated script module to the client after the test passes. After the client receives the updated script module, it compiles the script module in real time, and then uses reload to reload the corresponding module. After reloading, the program calls the new module at runtime, and generates a new object through the new module . [0004] However, if the old module has been loaded into memory, the old object created by the old mo...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445
CPCG06F8/656
Inventor 李康陈伊力
Owner NETEASE (HANGZHOU) NETWORK CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products