File Processing Method Pruning Entry Files for Response Time

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing file processing methods in computer applications lead to low functional response efficiency due to the full loading of functional modules, resulting in long response times and lagging issues.

Innovation Solution

A file processing method and apparatus that involves obtaining a functional logic file, parsing it to determine a target object, and then pruning the original entry file based on the object hierarchical relationship and the target object to create a target entry file, which only loads necessary functional modules.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If all functional modules in a function library are loaded when a functional module is imported, then the function can be executed with complete functionality, but the overall response time increases and response efficiency decreases

Engineering Contradiction:
Improvefunctionality completenessVSAvoidresponse time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent segments the function library into multiple functional modules and further divides them into dependency levels. Instead of loading all modules at once, it loads only the required module and its dependent modules in a hierarchical manner, reducing initial loading time while ensuring functionality completeness.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent extracts and analyzes the dependency relationships between functional modules by parsing the entry file. It identifies which modules are actually needed for a specific function and separates them from the rest of the library, loading only the necessary subset rather than the entire library.

Inventive Principle:
Principle #2Taking out (Extraction)

2Reliability

If all functional modules are loaded to ensure normal function execution, then functionality is ensured, but the system experiences lagging and low response efficiency

Engineering Contradiction:
Improvefunction execution assuranceVSAvoidresponse efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent performs preliminary analysis of the entry file to understand the dependency relationships between functional modules before execution. This preliminary action identifies which modules are actually needed, allowing the system to load only those modules in advance rather than all modules, thus improving response efficiency while ensuring execution reliability.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

Instead of loading all functional modules (excessive action), the patent loads only the necessary modules and their dependencies (partial action) required for the specific function to be executed. This partial loading approach maintains reliability while significantly improving response efficiency by avoiding unnecessary loading overhead.

Inventive Principle:
Principle #16Partial or excessive action

3Ease of manufacture

If the default syntax of computer programming languages is used for importing functional modules, then development workload is reduced, but full loading of functional modules occurs resulting in long response time

Engineering Contradiction:
Improvedevelopment workloadVSAvoidresponse time
Core Design Contradiction:
Ease of manufactureVSLoss of time

Solution Approach 1:

The patent introduces an intermediary mechanism (dependency analysis and pruning module) between the default import syntax and the actual module loading process. This intermediary parses the entry file to understand dependencies and generates a pruned loading list, allowing the use of simple default syntax while achieving optimized selective loading.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS20250181362A1File processing method and apparatus, electronic device, and storage medium
Publication Date: 2025.06.05 BEIJING ZITIAO NETWORK TECH CO LTD
  • US20250181362A1 patent drawing
  • US20250181362A1 patent drawing

AI summary

Embodiments of the present disclosure provide a file processing method and apparatus, an electronic device, and a storage medium. The method includes: obtaining a functional logic file corresponding to a target function, and parsing the functional logic file to obtain a target object corresponding to the target function, where the target object includes at least one of a function object, a class object, a variable object, and a constant object; obtaining an original entry file corresponding to the target function and an object hierarchical relationship corresponding to the original entry file; and determining a target entry file corresponding to the target function based on the object hierarchical relationship, the target object, and the original entry file.