Page Rendering Through Dependency-Based Local Compilation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing application development tools compile all code files in a project, leading to low compilation efficiency and page rendering efficiency during the development and debugging process.

Innovation Solution

A method and apparatus that constructs a code dependency relationship to identify and compile only the necessary code files related to a specific page, reducing the number of files compiled and improving compilation efficiency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If all code files in the project are compiled, then the completeness of the compiled code is improved, but the compilation efficiency deteriorates

Engineering Contradiction:
Improvecompleteness of compiled codeVSAvoidcompilation efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent segments the code files into different dependency levels based on their relationship with the target page. It identifies and compiles only the necessary code files (those with direct dependencies on the target page) while excluding unrelated files, thus dividing the compilation task into essential and non-essential segments.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent extracts and compiles only the specific code files that are directly related to the target page by analyzing code dependencies. It separates the necessary code files from the entire project codebase, compiling only the extracted subset rather than all files.

Inventive Principle:
Principle #2Taking out (Extraction)

2Reliability

If all code files are compiled, then the completeness of the page rendering is improved, but the page rendering efficiency deteriorates

Engineering Contradiction:
Improvecompleteness of page renderingVSAvoidpage rendering efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent segments the page rendering process by identifying and rendering only the components associated with the target page based on code dependency analysis. It divides the rendering task into page-specific components and other components, rendering only the necessary segment.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent extracts the specific code files and components needed for the target page from the entire project, and renders only these extracted elements. This extraction approach ensures complete rendering of the target page while excluding unrelated components.

Inventive Principle:
Principle #2Taking out (Extraction)

3Quantity of substance

If all code files are compiled, then the comprehensiveness of the code coverage is improved, but the resource consumption deteriorates

Engineering Contradiction:
Improvecode coverageVSAvoidresource consumption
Core Design Contradiction:
Quantity of substanceVSUse of energy by moving object

Solution Approach 1:

The patent extracts only the code files that are directly dependent on the target page for compilation and processing. This extraction minimizes resource consumption by excluding unrelated code files from the compilation and rendering processes, while still maintaining comprehensive coverage of the target page's required code.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS12386599B2Page rendering method, apparatus, electronic device, computer-readable storage medium, and computer program product
Publication Date: 2025.08.12 TENCENT TECHNOLOGY (SHENZHEN) CO LTD
  • US12386599B2 patent drawing
  • US12386599B2 patent drawing
  • US12386599B2 patent drawing

AI summary

A page rendering method and apparatus. The method includes presenting a local compilation control, the local compilation control being directed to a page node to be locally compiled for a page to be viewed; obtaining a page node in response to a local compilation operation performed on the local compilation control; obtaining a code node corresponding to the page node of the page to be complied from a code dependency relationship, the code dependency relationship being constructed based on a dependency relationship between code files, and the code dependency relationship representing a hierarchical relationship between nodes corresponding to the code files; compiling a code file corresponding to the code node of the code to be complied to obtain a compiled code; and presenting the page to be viewed corresponding to the page node of the page to be complied based on the compiled code.