Dynamic Library Loading with Shared Parsing Cache for Faster Startup

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Dynamic library loading in different applications is independent, leading to repeated calculations and slow startup speeds, consuming significant computing resources and memory.

Innovation Solution

A method for parsing target files and storing parsing results to optimize dynamic library loading, allowing for sharing and decoupling of parsing and loading processes, and utilizing multi-thread parallelism to accelerate the process.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If complete dynamic loading is performed for each new application, then the application can be loaded with all required library files, but the startup speed is low and redundant calculation is caused

Engineering Contradiction:
Improvecompleteness of library loadingVSAvoidstartup speed
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent performs parsing of dynamic library files in advance and stores the parsing results in a shared cache. When an application starts, the system directly retrieves pre-parsed information such as symbol tables and relocation data, avoiding redundant parsing operations during application startup, thus improving startup speed while ensuring complete library loading

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent creates a shared cache that stores parsing results of dynamic library files, which can be universally used by multiple applications. The cache serves multiple purposes: storing parsed information, providing fast lookup, and reducing redundant parsing across different applications, thereby improving both startup speed and resource utilization

Inventive Principle:
Principle #6Universality (Multi-functionality)

2Reliability

If complete dynamic loading is performed for each new application, then all library files are loaded, but computing resources and internal memory space are wasted due to redundancy

Engineering Contradiction:
Improvecompleteness of library loadingVSAvoidcomputing resource consumption
Core Design Contradiction:
ReliabilityVSLoss of energy

Solution Approach 1:

The patent creates a shared cache that stores parsing results of dynamic library files, which can be copied and shared across multiple applications. Instead of re-parsing the same library files repeatedly, the system copies the cached parsing results to subsequent applications, significantly reducing computing resource consumption while ensuring complete and accurate library loading

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The patent merges the parsing operations of multiple applications into a single shared cache. By combining the parsing results from different applications into one centralized cache structure, the system eliminates redundant parsing computations and reduces overall computing resource consumption while maintaining the completeness of library loading for each application

Inventive Principle:
Principle #5Merging (Combining)

3Reliability

If complete dynamic loading is performed for each new application, then the application can access all required functions, but internal memory space is consumed due to independent loading

Engineering Contradiction:
Improveavailability of library functionsVSAvoidinternal memory space
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent merges the library loading processes of multiple applications by implementing a shared cache that stores parsing results. This allows different applications to share the same cached parsing information, reducing the total internal memory space required while ensuring that all required library functions remain accessible to each application

Inventive Principle:
Principle #5Merging (Combining)

Data Source

PatentEP4715584A1Dynamic loading method and electronic device
Publication Date: 2026.03.25 HUAWEI TECH CO LTD
  • EP4715584A1 patent drawingFigure 1
  • EP4715584A1 patent drawingFigure 2
  • EP4715584A1 patent drawingFigure 3

AI summary

This application provides a dynamic loading method and an electronic device. The method includes: parsing one or more target files, and storing one or more first parsing results, where the one or more first parsing results are in a one-to-one correspondence with the one or more target files, the one or more target files include a first target file, and the first target file is an executable file or a dynamic library file; searching the one or more first parsing results for a first parsing result of a dynamic library file on which a first executable file depends; and mapping, based on the first parsing result of the dynamic library file on which the first executable file depends, the dynamic library file on which the first executable file depends into process address space in which the first executable file is located. Based on this solution, one or more parsing results can be shared. This helps optimize a startup speed of an application, save computing resources, save internal memory space, and improve performance of an electronic device, thereby improving user experience.