Compiled Resource File Merging for Faster App Page Display
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing methods for displaying app pages on electronic devices are slow due to the sequential loading and reading of multiple resource files, which hinders user experience.
Innovation Solution
Combining resource files belonging to the same page into a single file during the compilation phase, allowing for sequential and continuous reading from this combined file during display, reducing the need for sequential loading and improving page display speed.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If multiple resource files are loaded sequentially from storage, then each file can be processed individually, but the overall page display speed is slow
Solution Approach 1:
The patent combines multiple resource files (first resource file and second resource file) into a single combined file during the compilation phase. This merging eliminates the need for sequential loading and reading of multiple separate files during runtime, as all resources are now accessible from one file location, directly resolving the speed bottleneck caused by multiple sequential I/O operations.
2Productivity
If multiple resource files are stored separately, then file management is simple and individual files can be accessed independently, but the number of I/O operations increases
Solution Approach 1:
Multiple resource files are merged into a single combined file structure during compilation. This reduces the number of I/O operations from multiple separate file reads to a single file read operation, significantly improving reading efficiency. The combined file internally organizes all resource data with appropriate offsets and metadata, maintaining manageable complexity while enabling parallel or sequential access to any resource within the unified structure.
Data Source
AI summary
A file generation method includes obtaining first information based on a resource index file, where the resource index file comprises indexes, file names, and first path information of a plurality of resource files, where the resource files include a first resource file and a second resource file, where the first information includes second path information and a file name of a first file; loading the first file based on the first information; obtaining the first resource file and the second resource file from the first file based on second information; and displaying the first page based on the first resource file and the second resource file.


