Application Code Compilation Optimization via User Selection
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing application optimization methods, particularly in Android operating systems, face performance degradation when installed over the air (OTA) or during factory resets, and the hybrid compilation method requires waiting for specific conditions to improve performance, leading to inefficiencies.
Innovation Solution
An electronic device optimizes application code based on user input, allowing users to select and compile applications using a compilation filter tailored to their preferences, providing real-time optimization and visibility into the compilation process.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If the hybrid compilation method is used to reduce installation time and storage space, then installation efficiency is improved, but application execution performance deteriorates when specific conditions are not met
Solution Approach 1:
The system performs preliminary analysis of application code to identify frequently executed methods before runtime compilation. By pre-processing the code and creating a profile of usage patterns, the system prepares optimization targets in advance, enabling faster compilation when conditions are met and improving overall execution performance without sacrificing installation efficiency.
2Quantity of substance
If compilation is performed only when specific conditions are satisfied, then installation time and storage space are reduced, but execution speed deteriorates due to waiting for conditions
Solution Approach 1:
The system implements feedback mechanisms that continuously monitor application execution patterns and condition states. When frequently executed methods are detected, the system provides feedback to trigger compilation even if traditional conditions are not fully met, thereby improving execution speed while maintaining reasonable storage space utilization through selective compilation based on actual usage feedback.
3Speed
If the AOT method is used to improve execution speed, then application execution is faster, but installation time and storage space increase
Solution Approach 1:
Instead of compiling entire applications using AOT method, the system applies local quality by selectively compiling only the frequently executed portions of code (hot paths) while leaving less critical code in interpretable form. This approach achieves execution speed improvement for critical paths without incurring the full installation time and storage overhead of complete AOT compilation.
4Extent of automation
If no user control is provided for compilation, then the system operates automatically, but users cannot optimize performance for their specific usage patterns
Solution Approach 1:
The system implements dynamic control where compilation behavior adapts based on both automatic detection of usage patterns and user preferences. Users can dynamically adjust compilation priorities, select specific applications for optimization, and modify compilation triggers according to their specific needs, while the system maintains automatic operation for default scenarios, achieving both automation and adaptability.
Data Source
Figure 1
Figure 2~3
Figure 4
AI summary
An electronic device and method are disclosed. The electronic device includes an input device, a display, a memory and a processor. The processor implements the method, including: determining, by at least one processor, whether a designated condition is satisfied, based on determining that the designated condition is satisfied, displaying, on a display of the electronic device, a list of applications installed in a memory of the electronic device, detecting a first input through an input device selecting at least one application from the list, and compiling the selected at least one application.