Device and method for improving running efficiency of source file
A technology of operating efficiency and source files, applied in software engineering design, program control design, instruments, etc., can solve problems such as neglecting machines, and achieve the effect of improving operating efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0038] A method to improve the running efficiency of source files, such as figure 1 shown, including:
[0039] The extraction step extracts a temporary variable in a method body in the source file;
[0040] Judging step, judging whether the temporary variable is a repeated variable, if not, then entering the optimization step;
[0041] In the optimization step, the names of the temporary variables are replaced one by one by optimized variable names, and the optimized variable names are characters arranged in order.
[0042] As an example of this embodiment
[0043] Record all method bodies in the source file, and traverse each method body in turn.
[0044] Specifically, record all method bodies in the source file, traverse each method body in turn, and extract all temporary variables in a method body. After the optimization step is completed, the next method body is looped until all method bodies are optimized in turn.
[0045] Such as figure 2 As shown, the specific ste...
Embodiment 2
[0100] A device to improve the operating efficiency of source files, such as Figure 5 shown, including:
[0101] The extraction module is used to extract a temporary variable in a method body in the source file, and output the temporary variable to the judgment module;
[0102] Judgment module, used to judge whether the temporary variable is a repeated variable, if not, then output the temporary variable to the optimization module;
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com