App Resource File Merging for Faster Page Display
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing app page display speeds are slow due to the sequential loading and reading of multiple resource files, which hinders user experience.
Innovation Solution
Combine original resource files belonging to the same page into a single file during the compilation phase, allowing for sequential and continuous reading from the combined file, reducing the number of loading operations during page display.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If multiple resource files are loaded and read sequentially during page display, then the app can access required resources, but the page display speed becomes slow
Solution Approach 1:
The patent combines multiple resource files belonging to the same page into a single merged resource file during the compilation phase. This merging eliminates the need for sequential loading and reading of multiple separate files during runtime, directly resolving the technical contradiction by reducing the number of I/O operations and improving page display speed while maintaining all required resource access capabilities
2Productivity
If multiple resource files are loaded separately during page display, then each resource file can be independently accessed, but the number of loading operations increases
Solution Approach 1:
The patent merges multiple resource files into a single file during compilation, reducing the number of loading operations from multiple separate loads to a single load operation. This directly improves page display efficiency by minimizing I/O operations while the internal structure of the merged file maintains organized access to individual resources, preventing excessive complexity
3Loss of time
If resource files are loaded sequentially during page display, then memory usage is optimized, but the overall loading time increases
Solution Approach 1:
The patent combines multiple resource files into one merged file during compilation, reducing the total number of I/O operations required during page display. This single I/O operation loads all required resources simultaneously into memory, significantly reducing total loading time and energy consumption compared to sequential loading of multiple separate files
Data Source
Figure 1(a)~1(b)
Figure 2
Figure 3
AI summary
This application provides a file generation method and an electronic device. In a compilation phase of an app, original resource files belonging to a same page are combined into one file based on a page layout file corresponding to each page of the app. In this way, during page displaying, when the original resource files are loaded, a resource file generated after combination is actually loaded, and the original resource files are sequentially and continuously read from the resource file generated after combination. The original resource files do not need to be sequentially loaded and then read during page displaying, thereby improving a speed of reading the original resource files during page displaying, and improving a page display speed.