Compiled Resource File Merging for Faster App Page Display

Resolve Bottlenecks,
Find Innovative Solutions
Generate 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

VSEngineering 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

Engineering Contradiction:
Improvepage display speedVSAvoidtime for sequential loading and reading
Core Design Contradiction:
SpeedVSLoss of time

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.

Inventive Principle:
Principle #5Merging (Combining)

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

Engineering Contradiction:
Improveresource file reading efficiencyVSAvoidfile structure complexity
Core Design Contradiction:
ProductivityVSDevice complexity

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.

Inventive Principle:
Principle #5Merging (Combining)

Data Source

PatentUS12360948B2File generation method and electronic device
Publication Date: 2025.07.15 HUAWEI TECH CO LTD
  • US12360948B2 patent drawing
  • US12360948B2 patent drawing
  • US12360948B2 patent drawing

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.