Application Preloading via Socket Blocking for Faster Startup
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The startup speed of applications on smartphones is affected by uncontrollable data processing and excessive memory usage due to background execution, which degrades user experience.
Innovation Solution
A method involving a system service that detects trigger events to control application preloading, using a socket communication mechanism to manage CPU and memory resources, ensuring efficient preloading without excessive resource occupation.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If the application program runs in the background and preloads data, then the application startup speed is improved, but the memory usage and CPU resource occupation become excessively large
Solution Approach 1:
The patent applies preliminary action by preloading the application program into memory before the user actually needs to use it. The system service monitors trigger events (such as user gestures or time-based conditions) and initiates loading of the application program in advance, so that when the user launches the application, it starts immediately without full loading delay, thus improving startup speed while controlling resource usage.
Solution Approach 2:
The patent implements dynamic resource management by allowing the application program to dynamically adjust its data loading behavior based on actual usage conditions. The system service controls whether the application continues to run in background or suspends based on system state, and the application can dynamically load or release data buffers based on whether it receives continuation or suspension instructions, thereby optimizing memory usage while maintaining fast startup capability.
2Speed
If the application program receives all messages in the background, then the application is ready for quick startup, but the data processing becomes uncontrollable and resource consumption increases
Solution Approach 1:
The patent implements feedback control through a communication mechanism between the system service and the application program. The system service sends control messages (continuation or suspension instructions) to the application program based on system state and user behavior, and the application program adjusts its data processing accordingly. This feedback loop ensures that data processing remains controllable while maintaining quick startup capability, as the application only processes data when instructed to continue, and suspends or releases resources when instructed to pause.
Data Source
Figure 1
Figure 2a
Figure 2b
AI summary
This application relates to a method for accelerating application startup, an electronic device, and a computer storage medium. The method includes: A system service detects a first trigger event of a target application, loads an application program of the target application in response to the first trigger event, and transmits a communication address to the application program. The application program performs preloading, and waits to receive a message based on the communication address. The system service detects a second trigger event of the target application. The system service generates a startup instruction in response to the second trigger event of the target application, and sends the startup instruction to the application program. The application program receives the startup instruction by using the communication address, and starts the target application in response to the startup instruction. In this application, the application program of the target application does not need to occupy excessive CPU resources, input/output resources, or memory space in a preloading process, so as to improve an application startup speed.