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

Bytecode 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 poor running performance of applications, insufficient tailoring methods, and increased application packages, so as to improve operation Performance, reduced number of methods, clipping out thorough effects

Active Publication Date: 2022-02-11
ALIBABA GRP HLDG LTD
View PDF7 Cites 0 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
  • Bytecode optimization method and device
  • Bytecode optimization method and device
  • Bytecode 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

The embodiment of the present application discloses a bytecode optimization method and device. The bytecode optimization method includes: parsing the bytecode file, generating information about classes and attributes and methods in the class; selecting member access methods to be trimmed from the methods, and constructing corresponding direct access instructions; In the information, the calling instruction of the member access method to be tailored is replaced with a corresponding direct access instruction, and the access right descriptor of the corresponding accessed member is processed; and, the information to be deleted is deleted from the information. The trimmed member access method, and a bytecode file as an optimization result is generated according to the information after the deletion operation is performed. By adopting the above method, the problems of insufficient tailoring method, poor running performance of the application program and enlarged application package in the solution in the prior art are 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 Patents(China)
IPC IPC(8): G06F8/41
CPCG06F8/4434G06F8/4443
Inventor 肖浩龙
Owner ALIBABA GRP HLDG LTD