Hosted APP Compilation Optimization via Environment Data

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The existing compilation process for hosted APPs, such as mini programs, faces challenges in optimizing compilation results to ensure compatibility across various versions of the host APP and developer tools, leading to difficulties in getting optimization means online quickly and efficiently, which affects the running efficiency and reliability of the hosted APP.

Innovation Solution

A method that involves obtaining environment data from the host APP, querying and constructing compilation results, including original and optimized versions, to ensure compatibility and efficient distribution of optimized products, allowing the management platform to send the appropriate compilation results based on the host APP's environment, thereby simplifying the process and improving reliability.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If compilation optimization is performed for hosted APP, then running efficiency is improved, but compatibility with different host APP versions deteriorates

Engineering Contradiction:
Improverunning efficiencyVSAvoidcompatibility with host APP versions
Core Design Contradiction:
ProductivityVSAdaptability or versatility

Solution Approach 1:

The patent segments the compilation process into multiple versions (original compilation result and optimized compilation result) corresponding to different host APP versions. Each version is independently managed and can be selectively deployed, allowing optimized versions to run on compatible host APPs while maintaining original versions for others, thus resolving the contradiction between optimization efficiency and version compatibility.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements dynamic version management where the system can flexibly switch between original and optimized compilation results based on the host APP version. This dynamic approach allows the system to adapt to different versions and gradually roll out optimizations as host APP versions are updated, balancing efficiency improvement with compatibility maintenance.

Inventive Principle:
Principle #15Dynamics

2Adaptability or versatility

If multiple compilation versions are maintained for different host APP versions, then compatibility is improved, but system complexity increases

Engineering Contradiction:
Improveversion compatibilityVSAvoidcompilation management complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent creates a universal management mechanism that handles multiple compilation versions through a unified interface. The system maintains both original and optimized compilation results but manages them through a single standardized process, allowing the same management logic to handle version selection, deployment, and switching, thereby reducing the perceived complexity despite maintaining multiple versions.

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

Solution Approach 2:

The patent introduces an intermediary management layer that sits between the compilation process and the hosted APP. This intermediary automatically selects and manages the appropriate compilation version based on host APP version information, shielding the complexity of multi-version management from both developers and users while ensuring correct version matching.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Productivity

If optimization means are deployed quickly, then productivity is improved, but reliability of hosted APP running deteriorates

Engineering Contradiction:
Improvedeployment speedVSAvoidhosted APP running reliability
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent performs preliminary actions by pre-compiling and preparing multiple versions (original and optimized) before deployment. The optimized compilation result is prepared in advance but not immediately activated, allowing for verification and testing. This preliminary preparation enables quick deployment when ready while ensuring reliability through advance validation of the optimization process.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements beforehand cushioning by maintaining the original compilation result as a backup alongside the optimized version. If the optimized version proves unreliable or causes issues, the system can immediately revert to the original version, providing a safety cushion that protects reliability while allowing aggressive optimization deployment.

Inventive Principle:
Principle #11Beforehand cushioning (Prior cushioning)

Data Source

PatentEP3945415B1Method and apparatus for compilation optimization of hosted APP, electronic device and readable storage medium
Publication Date: 2023.08.09 BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
  • EP3945415B1 patent drawingFigure 1
  • EP3945415B1 patent drawingFigure 2~3
  • EP3945415B1 patent drawingFigure 4~5

AI summary

The present disclosure provides a method, apparatus, electronic device and readable storage medium for compilation optimization of a hosted APP, relates to the technical field of compilation of applications, and particularly to the technical field of mini programs. In the present disclosure, a developer tool constructs a first compilation result of the hosted APP before compilation optimization and a second compilation result of the hosted APP after the compilation optimization respectively based on a source code of the hosted APP, and uploads them to a management platform. The management platform sends the corresponding compilation results according to environment data of the hosted APP running environment provided by the host APP, so that the host APP uses the hosted APP running environment provided by the host APP to run the obtained compilation result. Since the optimization of the compilation processing of the hosted APP is no longer limited to the version of the host APP used by the user, the compilation optimization of the hosted APP is performed smoothly, thereby effectively improving the efficiency and reliability in running the hosted APP after the optimization.