File dynamic loading method and device

A dynamic loading and file technology, applied in the computer field, can solve problems such as program unresponsiveness and long compilation time, and achieve the effects of improving application experience, fast dynamic loading, and avoiding excessive compilation time

Pending Publication Date: 2019-12-06
BEIJING ANYUNSHIJI TECH CO LTD
View PDF4 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In practical applications, the content used is often part of the functions in the DEX file. However, since DEX2oat is a full compilation method, when the DEX file is large and dynamically loaded in the main thread, it may be due to compilation. ANR (Application Not Responding, program unresponsive) caused by too long time

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
  • File dynamic loading method and device
  • File dynamic loading method and device
  • File dynamic loading method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0044] The embodiment of the present invention provides a method for dynamically loading files, and the method is applied to the dynamic loading process of files in the Android system. The specific steps of this method are as follows figure 1 shown, including:

[0045] Step 101, load the program file in the preset virtual machine.

[0046] Wherein, the preset virtual machine is used to load the original program file, and there is no need to 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 file dynamic loading method and device, relates to the technical field of computers, and mainly aims to improve the dynamic loading efficiency of the file. According to the main technical scheme, the method comprises: loading a program file in a preset virtual machine, the preset virtual machine being used for loading an original program file, and code compiling does notneed to be conducted on the original program file; and constructing a program file object by analyzing the information in the program file. The method and the device are mainly used for dynamically loading the program file.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and device for dynamically loading files. Background technique [0002] With the popularization of smart devices, the application programs in the smart devices are becoming more and more abundant, often including multiple small programs in one application program, and to start these small programs, it is necessary to dynamically load the corresponding startup files. In the Android system, the class loader DEXClassLoader is used to support dynamic loading of DEX files. The strategy it adopts when loading DEX files is to call DEXFile_openDEXFileNative by loading DEX files. In DEXFile_openDEXFileNative, it will call OpenDEXFilesFromOat to construct DEXFile objects. The process will execute DEX2oat to compile DEX files into oat files, that is, convert java code to binary machine code, and this compilation process is very time-consuming. [0003] In practical applications,...

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/445G06F9/455
CPCG06F9/44521G06F9/4552G06F9/45508
Inventor 徐志克
Owner BEIJING ANYUNSHIJI TECH 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