Dynamic Compilation Scheme for Electronic Device Memory Management
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The performance of electronic devices can degrade due to insufficient storage space, necessitating proactive management to secure free storage and minimize performance loss.
Innovation Solution
The processor dynamically adjusts the compile scheme of executable files and packages using a combination of just-in-time and ahead-of-time compilation techniques to optimize storage usage without user intervention.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If ahead-of-time compilation is used to generate compile artifact files, then runtime performance is improved, but storage space is consumed
Solution Approach 1:
The system dynamically switches between ahead-of-time compilation and just-in-time compilation based on storage space conditions. When storage is sufficient, ahead-of-time compilation generates optimized artifact files for better runtime performance. When storage becomes constrained, the system transitions to just-in-time compilation to reduce storage consumption while maintaining acceptable performance through dynamic adaptation.
Solution Approach 2:
The compilation strategy changes parameters such as compilation timing and optimization level based on storage space availability. The system monitors storage conditions and adjusts compilation parameters dynamically, switching between different compilation modes (ahead-of-time vs. just-in-time) to optimize the trade-off between runtime performance and storage consumption.
2Quantity of substance
If storage space is secured pre-emptively by changing compile schemes, then free storage space is increased, but device performance may degrade
Solution Approach 1:
Instead of completely switching to less optimized compilation modes when storage is constrained, the system applies partial optimization by using just-in-time compilation for less critical components while maintaining ahead-of-time compilation for essential performance-critical code. This partial application of optimization strategies secures storage space while minimizing performance degradation.
Solution Approach 2:
The system applies different compilation strategies to different parts of the codebase based on their importance and storage requirements. Critical performance paths maintain ahead-of-time compilation with full optimization, while less critical components use just-in-time compilation to reduce storage consumption, creating local quality variations in optimization levels.
Data Source
Figure 1
Figure 2
Figure 3~4
AI summary
According to various embodiments, this electronic device includes at least one processor and a memory for storing instructions that can be executed by the processor, wherein the processor can: monitor information about the storage space of the memory and usage histories of a plurality of objects executed by the processor, determine a target object, of which the compile scheme is to be changed, among the plurality of objects on the basis of one or both of the information and the usage histories; and increase the free storage space of the memory by changing the compile scheme of the target object. Other embodiments are possible.