Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Function calling method and device, electronic equipment and storage medium

A function call and function technology, applied in the direction of program control device, program control design, electrical digital data processing, etc., can solve the problems of waste of memory space, limited memory space, affecting user experience, etc., to optimize the startup process and improve startup efficiency Effect

Pending Publication Date: 2022-01-28
上海米哈游璃月科技有限公司
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] When a function in a certain class needs to be called, it is often necessary to allocate memory for the class containing the function and all the functions in it. In other words, even if the class contains functions that are not related to project startup or running, the system Its memory is internally configured, resulting in a waste of memory space, and may even cause lag when running projects due to limited memory space, affecting user experience

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
  • Function calling method and device, electronic equipment and storage medium
  • Function calling method and device, electronic equipment and storage medium
  • Function calling method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] figure 1 It is a schematic flowchart of a function calling method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of selectively calling a function during the startup process of the target project, and the method can be executed by a function calling device , the device can be implemented by software and / or hardware, and can be configured in a terminal and / or server to implement the function calling method in the embodiment of the present invention.

[0030] Such as figure 1 As shown, the method in this embodiment may specifically include:

[0031] S110. During the startup process of the target project, load a pre-built function loading hook file.

[0032] As mentioned above, the target project may be a project that needs to be started at the current moment. Optionally, the target item may be an application program installed on a smart terminal. Typically, the smart terminal may be a mobile phone, a tablet computer, or a p...

Embodiment 2

[0060] figure 2 It is a schematic flowchart of a function calling method provided by Embodiment 2 of the present invention. On the basis of the above technical solution, this embodiment further refines the technical solution. In this embodiment, on the basis of any optional technical solution in the embodiments of the present invention, optionally, the function invocation method further includes: obtaining the pre-set A callable function list is stored in the local storage space corresponding to the client that starts the target project.

[0061] In this embodiment, on the basis of any optional technical solution in the embodiments of the present invention, optionally, determining whether the target function is callable based on the function loading hook file and the pre-created callable function list Before the function, it also includes: based on the version number of the callable function list, it is determined whether the callable function list is the latest callable fun...

Embodiment 3

[0091] In order for those skilled in the art to further understand the technical solutions of the embodiments of the present invention, the following examples take the target project as a game and the target terminal for starting the game as a client installed on a mobile phone as an example to give specific examples of application scenarios. Taking the target item as an example of a mobile game application, the method in the embodiment of the present invention may include the following steps:

[0092] Before the mobile client starts the game, the pre-built function loads the hook file;

[0093] Specifically, the dll generation method of c# in the native code library is used to pre-build a project EnginePreEntryHook that loads a hook file with a function, and generates a file EnginePreEntryHook.dll in a dynamic link database format. And the confirmation of whether the target function is in the callable function list is realized in EnginePreEntryHook.

[0094] During the start...

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

Embodiments of the invention disclose a function calling method and device, electronic equipment and a storage medium. The method comprises the following steps: loading a pre-constructed function loading hook file in a starting process of a target project; when a function calling instruction used for calling a target function is received, determining whether the target function is a callable function or not based on the function loading hook file and a pre-created callable function list; and if so, calling the target function in response to the function calling instruction. According to a technical scheme provided by the embodiments of the invention, the technical problems of memory redundancy, terminal jamming and the like caused by full-amount calling of the function can be avoided, and the effects of saving memory resources, improving project starting efficiency and improving user experience are achieved.

Description

technical field [0001] The embodiments of the present invention relate to the field of computer application technologies, and in particular to a function calling method, device, electronic equipment, and storage medium. Background technique [0002] During the startup and running of the project, various functions are called to realize the startup and running of the project. At present, in the process of starting the project, all the functions involved in the project and the classes to which the functions belong will be called to allocate memory for them. [0003] When a function in a certain class needs to be called, it is often necessary to allocate memory for the class containing the function and all the functions in it. In other words, even if the class contains functions that are not related to project startup or running, the system Its memory is internally configured, resulting in a waste of memory space, and may even cause lag when running projects due to limited memo...

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/448G06F9/445
CPCG06F9/449G06F9/44505G06F9/44521G06F9/44526
Inventor 王达
Owner 上海米哈游璃月科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products