Unlock instant, AI-driven research and patent intelligence for your innovation.

Byte code optimization method and device

An optimization method and bytecode technology, applied in code compilation, program code conversion, electrical digital data processing, etc., can solve problems such as insufficient clipping methods, enlarged application packages, and poor performance of application programs, and achieve reduction methods Quantity, thorough cropping, and performance-enhancing effects

Active Publication Date: 2018-10-02
ALIBABA GRP HLDG LTD
View PDF7 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The embodiment of the present application provides a bytecode optimization method to solve the problems of insufficient tailoring methods, poor application performance, and increased application package in the existing solutions.

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
  • Byte code optimization method and device
  • Byte code optimization method and device
  • Byte code optimization method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0061] Many specific details are set forth in the following description to facilitate a full understanding of the embodiments of the present application. However, the embodiment of the present application can be implemented in many other ways different from those described here, and those skilled in the art can make similar promotions without violating the connotation of the embodiment of the present application. Implemented restrictions.

[0062] The first embodiment of the present application provides a bytecode optimization method. Please refer to figure 1 , which shows a flowchart of a bytecode optimization method provided according to an embodiment of the present application. The following combination figure 1 Describe in detail.

[0063] Step S101, analyzing the bytecode file to generate information about the class and the attributes and methods in the class.

[0064] The bytecode file is a file composed of bytecode, wherein the bytecode is an instruction format exe...

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 byte code optimization method and device. The byte code optimization method comprises the following steps of: analyzing a byte code file to generate informationrelated to classes and attributes and methods in the classes; selecting a to-be-clipped member access method from the methods and constructing a corresponding direct access instruction; replacing a calling instruction, for the to-be-clipped member access method, in the information by the corresponding direct access instruction, and processing an access authority descriptor of a corresponding accessed member; and deleting the to-be-clipped member access method from the information and generating a byte code file which serves as an optimization result according to the information after the deletion. By adoption of the method, the problem that solutions in the prior art are insufficient in clip methods, bad in application program operation performance and large in application packages is solved.

Description

technical field [0001] The embodiment of the present application relates to the field of software development, and in particular to a bytecode optimization method and device. Background technique [0002] At present, with the improvement of application software requirements, the volume of client code is getting larger and larger. In the construction of Android applications, the limit on the number of method names in the single dex (executable file type on the Android platform) mode can no longer be satisfied. Business requirements, so the need to reduce the number of methods in the bytecode file is proposed to avoid the problem of failure to build the dex file. [0003] Proguard in the prior art is a tool for compressing, optimizing and obfuscating Java bytecode files, and realizes the function of deleting useless classes, fields, methods and attributes. Proguard's implementation plan is to use a series of logic to judge whether inlining can be performed for each pair of ca...

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): G06F8/41
CPCG06F8/4434G06F8/4443
Inventor 肖浩龙
Owner ALIBABA GRP HLDG LTD