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

A python-based r.java file optimization method and optimization system

An optimization method and file technology, applied in software deployment, software engineering design, program code conversion, etc., can solve problems such as confusion, cannot find, slow application startup, etc., to optimize size, reduce the number of members, and reduce subcontracting effect of quantity

Active Publication Date: 2019-08-23
广州魔晶智能科技股份有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The defect is that the reflection-related classes used in the application cannot be confused, otherwise the application will not find the class when it is running
[0005] At the same time, in the Android system, there is an upper limit to the number of methods supported by a dex file of an application. If the upper limit is exceeded, the application needs to be split into multiple dex files. When the application starts, it will take extra time to combine multiple dex files, resulting in Apps start slowly

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
  • A python-based r.java file optimization method and optimization system
  • A python-based r.java file optimization method and optimization system
  • A python-based r.java file optimization method and optimization system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.

[0046] see figure 1 As shown, the embodiment of the present invention provides a method for optimizing a python-based R.java file: the R.java file is used to store the resource name and resource value of the resource called by the java code source file in the application program, and the method includes:

[0047] Step S1, creating a python dictionary object, traversing the R.java file directory, obtaining all resource names and resource values ​​corresponding to the resource names and storing them in the python dictionary object;

[0048] Step S2, creating a path list, obtaining paths of all java code source files in the application program and storing them in the path list;

[0049] Step S3, traversing the path list, opening the corresponding java code source file through the path of the java code source file, searching the python dictionary...

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 python-based R.java file optimization method, and relates to the technical field of computer file optimization. The method comprises the steps of creating a python dictionary object, performing traversal on an R.java file catalog, obtaining all resource names and resource values corresponding to the resource names and storing the resource names and the resource value into a python dictionary object; creating a path list, obtaining all java code source file paths in an application program and storing the paths into the path list; performing traversal on the path list, opening corresponding java code source files through the java code source file path, searching the python dictionary object for resource values corresponding to the resource names of resources called by the java code source file, and replacing the resource names in the java code source files with resource values; emptying the content of R.java files. The invention further discloses a python-based R.java file optimization system.

Description

technical field [0001] The invention relates to the technical field of computer file optimization, in particular to a python-based R.java file optimization method and optimization system. Background technique [0002] In the Android development process, as the system version is updated and iterated, the size of the application will become larger and larger. Considering the user's traffic cost, optimizing the size of the application's installation package to reduce the user's traffic has become an urgent task. technical issues to be resolved. [0003] At present, there are two mainstream solutions for optimizing the size of the application installation package. One is to clean up useless so files. The so files of multiple processor architectures are placed in the application installation package for compatibility, resulting in larger application installation packages, but in fact, most processors are only compatible with one of the processor architectures, so only one proces...

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/30G06F8/41G06F8/61
CPCG06F8/315G06F8/4434G06F8/4441G06F8/61
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