CN115220803A - Data processing method and equipment - Google Patents

Data processing method and equipment Download PDF

Info

Publication number
CN115220803A
CN115220803A CN202110412134.4A CN202110412134A CN115220803A CN 115220803 A CN115220803 A CN 115220803A CN 202110412134 A CN202110412134 A CN 202110412134A CN 115220803 A CN115220803 A CN 115220803A
Authority
CN
China
Prior art keywords
rendering
target
program
engine
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110412134.4A
Other languages
Chinese (zh)
Inventor
龙建军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Cloud Computing Changsha Co Ltd
Original Assignee
Tencent Cloud Computing Changsha Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Cloud Computing Changsha Co Ltd filed Critical Tencent Cloud Computing Changsha Co Ltd
Priority to CN202110412134.4A priority Critical patent/CN115220803A/en
Publication of CN115220803A publication Critical patent/CN115220803A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Abstract

The embodiment of the application discloses a data processing method and equipment, wherein the method comprises the following steps: responding to a starting instruction of a target small program in an application program, and initializing the operating environment of the target small program; the initialization comprises initialization of a logic engine and a rendering engine; acquiring rendering data corresponding to the target applet from a local database through a logic engine, and sending the rendering data to the rendering engine; and loading the rendering data by adopting the rendering engine to generate a rendering page corresponding to the target small program. By adopting the method and the device, the rendering time of the program page can be reduced, and the page display speed is improved.

Description

Data processing method and equipment
Technical Field
The present application relates to the field of internet technologies, and in particular, to a data processing method and device.
Background
When a user opens a small program page, two threads (JS engine thread and Webview thread) are independently started at the same time, and after initialization of the Webview thread is completed, a notification is sent to inform the JS engine thread, and the Webview thread enters a waiting state. The JS engine thread initialization is synchronous with the webview thread, the JS engine thread transmits data of a current page to the webview thread after receiving notification of the webview thread, the webview thread renders the data (the data is empty under general conditions), the JS engine thread transmits the data to the webview thread again after acquiring the data from a background, and the webview thread renders the data again to generate a display page corresponding to the applet. The above page display process needs not only to consume time in acquiring data from the background, but also needs to repeatedly render the page, resulting in a certain delay feeling when the business data is rendered on the page.
Disclosure of Invention
The embodiment of the application provides a data processing method and device, which can reduce the rendering time of an applet page and improve the page display speed.
In one aspect, an embodiment of the present application provides a data processing method, which may include:
responding to a starting instruction of a target small program in an application program, and initializing the operating environment of the target small program; the initialization comprises initialization of a logic engine and a rendering engine;
acquiring rendering data corresponding to the target applet from a local database through a logic engine, and sending the rendering data to the rendering engine;
and loading the rendering data by adopting the rendering engine to generate a rendering page corresponding to the target small program.
In a possible embodiment, the method further comprises:
and creating a data pulling interface corresponding to the application program, wherein the data pulling interface is used for pulling rendering data corresponding to the target applet from a background.
In a possible embodiment, the method further includes:
responding to a starting instruction of a target small program in an application program, and detecting a corresponding local database of the application program;
if the local database does not have the target storage space corresponding to the target applet, acquiring rendering data corresponding to the target applet from a server corresponding to the target applet through the data pull interface, and storing the rendering data into a program storage space corresponding to the application program in the local database; the program storage space includes the target storage space.
In one possible embodiment, the initializing the operating environment of the target applet in response to a start instruction of the target applet in the application includes:
responding to a starting instruction of a target applet in an application program, and initializing a logic engine and a rendering engine of the target applet;
downloading a program code corresponding to the target small program from a server of the target small program, and creating a program interface corresponding to the target small program according to the program code.
In one possible embodiment, the obtaining, by a logic engine, rendering data corresponding to the target applet from a local database, and sending the rendering data to a rendering engine includes:
and acquiring rendering data corresponding to the target applet from a program storage space corresponding to the application program through a logic engine, and sending the rendering data to a rendering engine.
In a possible embodiment, the method further comprises:
and creating a target storage space corresponding to the target applet in the program storage space, and storing the rendering data to the target storage space.
In one possible embodiment, the obtaining, by a logic engine, rendering data corresponding to the target applet from a local database, and sending the rendering data to a rendering engine includes:
and if the local database has a target storage space corresponding to the target applet, acquiring rendering data corresponding to the target applet from the target storage space through a logic engine, and sending the rendering data to the rendering engine.
An aspect of an embodiment of the present application provides a data processing apparatus, which may include:
the initialization unit is used for responding to a starting instruction of a target small program in an application program and initializing the running environment of the target small program; the initialization comprises initialization of a logic engine and a rendering engine;
the data acquisition unit is used for acquiring rendering data corresponding to the target applet from a local database through a logic engine and sending the rendering data to the rendering engine;
and the page loading unit is used for loading the rendering data by adopting the rendering engine and generating a rendering page corresponding to the target applet.
In a possible embodiment, the method further comprises:
and the interface creating unit is used for creating a data pulling interface corresponding to the application program, and the data pulling interface is used for pulling the rendering data corresponding to the target applet from a background.
In a possible embodiment, the method further includes:
the detection unit is used for responding to a starting instruction of a target small program in an application program and detecting a corresponding local database of the application program;
if the local database does not have the target storage space corresponding to the target applet, acquiring rendering data corresponding to the target applet from a server corresponding to the target applet through the data pull interface, and storing the rendering data into a program storage space corresponding to the application program in the local database; the program storage space includes the target storage space.
In a possible implementation manner, the initialization unit is specifically configured to:
responding to a starting instruction of a target small program in an application program, and initializing a logic engine and a rendering engine of the target small program;
downloading a program code corresponding to the target small program from a server of the target small program, and creating a program interface corresponding to the target small program according to the program code.
In a possible implementation manner, the data obtaining unit is specifically configured to:
and acquiring rendering data corresponding to the target applet from a program storage space corresponding to the application program through a logic engine, and sending the rendering data to a rendering engine.
In a possible embodiment, the method further comprises:
and the data storage unit is used for creating a target storage space corresponding to the target applet in the program storage space and storing the rendering data into the target storage space.
In a possible implementation manner, the data obtaining unit is specifically configured to:
and if the local database has a target storage space corresponding to the target applet, acquiring rendering data corresponding to the target applet from the target storage space through a logic engine, and sending the rendering data to the rendering engine.
An aspect of the embodiments of the present application provides a computer-readable storage medium, in which a computer program is stored, the computer program being adapted to be loaded by a processor and to perform the above-mentioned method steps.
An aspect of an embodiment of the present application provides a computer device, including a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
An aspect of an embodiment of the present application provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The computer instructions are read by a processor of the computer device from a computer-readable storage medium, and the computer instructions are executed by the processor to cause the computer device to perform the method steps described above.
In the embodiment of the application, the operating environment of the target applet is initialized by responding to a starting instruction of the target applet in the application program, the initialization comprises the initialization of a logic engine and a rendering engine, the rendering data corresponding to the target applet are further obtained from a local database through the logic engine and are sent to the rendering engine, and finally the rendering engine is adopted to load the rendering data to generate the rendering page corresponding to the target applet. By adopting the method, the time consumption for acquiring the rendering data from the background server can be avoided, the repeated rendering of the page is not needed, the time for rendering the small program page is reduced, and the page display speed is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a block diagram of a system architecture for data processing according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 5 is an exemplary schematic diagram of a data processing method provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a block diagram of a data processing system according to an embodiment of the present invention. The server 10f establishes a connection with a user terminal cluster through the switch 10e and the communication bus 10d, and the user terminal cluster may include: user terminal 10a, user terminal 10 b. The method comprises the steps that a user terminal 10a responds to a starting instruction of a target small program in an application program and initializes the running environment of the target small program, the initialization comprises the initialization of a logic engine and a rendering engine, the user terminal 10a further obtains rendering data corresponding to the target small program from a local database 10g through the logic engine, the rendering data are obtained from a server 10f in advance, the user terminal 10a sends the rendering data to the rendering engine, and finally the rendering engine is adopted to load the rendering data to generate a rendering page corresponding to the target small program. According to the method, time consumption for obtaining rendering data from the background server can be avoided, repeated rendering of the page is not needed, the time for rendering the page of the applet is shortened, and the page display speed is improved.
The user terminal related to the embodiment of the application comprises: terminal equipment such as tablet personal computers, smart phones, personal Computers (PCs), notebook computers, palmtop computers and the like.
Referring to fig. 2, a flow chart of a data processing method according to an embodiment of the present application is schematically shown. As shown in fig. 2, the method of the embodiment of the present application may include the following steps S101 to S103.
S101, responding to a starting instruction of a target small program in an application program, and initializing the running environment of the target small program;
specifically, the data processing device responds to a start instruction of a target applet in an application program, the data processing device may be any user terminal in the user terminal cluster shown in fig. 1, the application program is an application program capable of supporting applet operation, specifically, the application program may be a wechat, a cell phone QQ, and the like, the target applet is any applet in the application program, the start instruction is an operation command for the target applet, specifically, a click instruction and a touch instruction, after receiving the start instruction, the data processing device initializes an operation environment of the target applet, in a normal operation process of the applet, two threads including a logic engine and a rendering engine are independently started at the same time, the logic engine is responsible for data pulling and data service logic calculation, specifically, the data processing device may be a JS engine thread, and the rendering engine is responsible for page rendering and displaying, specifically, and may be a bweview thread. Initialization of the runtime environment includes initialization of the logic engine and the rendering engine, and downloading of a code package that downloads the target applet, and the like.
S102, obtaining rendering data corresponding to the target applet from a local database through a logic engine, and sending the rendering data to the rendering engine;
specifically, after the initialization of the rendering engine is completed, a notification is sent to the logic engine, and the logic engine enters a waiting state, after receiving the notification of the rendering engine, the data processing device obtains the rendering data corresponding to the target applet from the local database through the logic engine, it should be noted that the initialization of the logic engine is completed on the premise that the logic engine obtains the rendering data from the local database, and the initialization of the logic engine and the initialization of the rendering engine are performed synchronously. Rendering data in the local database can be rendering data which is acquired from a server background and stored in the local database when the target applet is opened last time, or rendering data which is pulled from the server background in advance when the target applet is opened this time, the data processing equipment acquires the rendering data corresponding to the target applet from the local database through the logic engine, time consumed for acquiring the rendering data from the server background is avoided, and then the rendering data is sent to the rendering engine, so that the rendering engine renders the rendering data to generate a page corresponding to the applet, the time for rendering the applet page is reduced, the page display speed is improved, and the user experience is improved.
S103, loading the rendering data by adopting the rendering engine, and generating a rendering page corresponding to the target applet.
Specifically, the data processing device loads the rendering data by using the rendering engine to generate the rendering page corresponding to the target applet, and it can be understood that the rendering engine generates a page frame of the target applet through the page constructor, converts the rendering data into a DOM tree, and finally generates the rendering page corresponding to the applet according to the page frame and the DOM tree.
In the embodiment of the application, the operating environment of the target applet is initialized by responding to a starting instruction of the target applet in the application program, the initialization comprises the initialization of a logic engine and a rendering engine, the rendering data corresponding to the target applet are further obtained from a local database through the logic engine and are sent to the rendering engine, and finally the rendering engine is adopted to load the rendering data to generate the rendering page corresponding to the target applet. By adopting the method, the time consumption for acquiring the rendering data from the background server can be avoided, the repeated rendering of the page is not needed, the time for rendering the applet page is shortened, and the page display speed is improved.
Referring to fig. 3, a flow chart of a data processing method according to an embodiment of the present application is schematically shown. As shown in fig. 3, the method of the embodiment of the present application may include the following steps S201 to S206.
S201, establishing a data pulling interface corresponding to the application program.
Specifically, the data processing device creates a data pull interface corresponding to the application program, where the data pull interface is used to pull rendering data corresponding to the target applet from a background, and it can be understood that the data pull interface is created in advance, and in the process of opening the target applet, the rendering data used for page rendering can be pulled from the server background through the data pull interface.
S202, responding to a starting instruction of a target small program in an application program, and initializing a logic engine and a rendering engine of the target small program; downloading a program code corresponding to the target small program from a server of the target small program, and creating a program interface corresponding to the target small program according to the program code.
Specifically, the data processing device responds to a starting instruction of a target applet in an application program and initializes a logic engine and a rendering engine of the target applet, in the normal running process of the applet, two threads including the logic engine and the rendering engine are independently started at the same time, the logic engine is responsible for data pulling and data service logic calculation, and the rendering engine is responsible for page rendering and displaying. After receiving a starting instruction of a target applet, a data processing device initializes a logic engine and a rendering engine of the target applet, downloads a program code corresponding to the target applet from a server of the target applet, wherein the program code comprises a style, a frame and the like displayed at the front end of the applet, and further creates a program interface corresponding to the target applet according to the program code.
S203, responding to a starting instruction of a target small program in an application program, and detecting a local database corresponding to the application program;
specifically, the data processing device detects a corresponding local database of an application program in response to a start instruction of a target applet in the application program, and it is understood that the local database is a local storage space in the data processing device, specifically. The storage space corresponding to the target applet is a target storage space, that is, the program storage space includes the target storage space.
Detecting whether a target storage space corresponding to the target applet exists in a local database, if the target storage space corresponding to the target applet does not exist in the local database, obtaining rendering data corresponding to the target applet from a server corresponding to the target applet through the data pull interface, and storing the rendering data into a program storage space corresponding to the application program in the local database.
S204, acquiring rendering data corresponding to the target small program from a program storage space corresponding to the application program through a logic engine, and sending the rendering data to the rendering engine.
Specifically, the data processing device obtains rendering data corresponding to the target applet from a program storage space corresponding to the application program through a logic engine, and sends the rendering data to the rendering engine, it can be understood that the rendering engine sends a notification to the logic engine after initialization is completed, and enters a waiting state, the logic engine directly obtains the rendering data corresponding to the target applet from the program storage space corresponding to the application program after initialization is completed, and the rendering data is obtained from a server through a data pulling interface in advance, so that time consumption for obtaining the rendering data from a background server is avoided.
S205, creating a target storage space corresponding to the target applet in the program storage space, and storing the rendering data to the target storage space.
Specifically, when a target storage space does not exist in a local database, rendering data is temporarily stored in a program storage space in the local database, after the rendering data is sent to a rendering engine, data processing equipment creates a target storage space corresponding to the target applet in the program storage space, and stores the rendering data in the target storage space.
And S206, loading the rendering data by adopting the rendering engine, and generating a rendering page corresponding to the target applet.
Step S206 in the embodiment of the present invention refers to the detailed description of step S103 in the embodiment shown in fig. 2, which is not repeated herein.
In the embodiment of the application, the operating environment of the target applet is initialized by responding to a starting instruction of the target applet in the application program, the initialization comprises the initialization of a logic engine and a rendering engine, the rendering data corresponding to the target applet are further obtained from a local database through the logic engine and are sent to the rendering engine, and finally the rendering engine is adopted to load the rendering data to generate the rendering page corresponding to the target applet. By adopting the method, the time consumption for acquiring the rendering data from the background server can be avoided, the repeated rendering of the page is not needed, the time for rendering the small program page is reduced, and the page display speed is improved.
Referring to fig. 4, a flow chart of a data processing method according to an embodiment of the present application is schematically shown. As shown in fig. 4, the method of the embodiment of the present application may include the following steps S301 to S304.
S301, responding to a starting instruction of a target small program in an application program, and initializing a logic engine and a rendering engine of the target small program; downloading a program code corresponding to the target small program from a server of the target small program, and creating a program interface corresponding to the target small program according to the program code.
Specifically, the data processing device responds to a starting instruction of a target applet in an application program and initializes a logic engine and a rendering engine of the target applet, in the normal running process of the applet, two threads including the logic engine and the rendering engine are independently started at the same time, the logic engine is responsible for data pulling and data service logic calculation, and the rendering engine is responsible for page rendering and displaying. After receiving a starting instruction of a target applet, a data processing device initializes a logic engine and a rendering engine of the target applet, downloads a program code corresponding to the target applet from a server of the target applet, wherein the program code comprises a style, a frame and the like displayed at the front end of the applet, and further creates a program interface corresponding to the target applet according to the program code.
S302, responding to a starting instruction of a target small program in an application program, and detecting a local database corresponding to the application program;
specifically, the data processing device responds to a starting instruction of a target applet in an application program, detects whether a target storage space corresponding to the target applet exists in a local database, and if the target storage space corresponding to the target applet exists, it indicates that the target applet is not opened for the first time, and rendering data corresponding to the target applet already exists in the target storage space.
And S303, if the target storage space corresponding to the target applet exists in the local database, acquiring rendering data corresponding to the target applet from the target storage space through a logic engine, and sending the rendering data to the rendering engine.
Specifically, after the initialization of the rendering engine is completed, the rendering engine sends a notification to the logic engine and enters a waiting state, and after the initialization of the logic engine is completed, if the target storage space corresponding to the target applet exists in the local database, the data processing device directly obtains the rendering data corresponding to the target applet from the target storage space, so that time consumption for obtaining the rendering data from a background server is avoided.
S304, loading the rendering data by adopting the rendering engine, and generating a rendering page corresponding to the target applet.
Step S304 in the embodiment of the present invention refers to the detailed description of step S103 in the embodiment shown in fig. 2, which is not repeated herein.
In the embodiment of the application, the operating environment of the target applet is initialized by responding to a starting instruction of the target applet in the application program, the initialization comprises the initialization of a logic engine and a rendering engine, the rendering data corresponding to the target applet are further obtained from a local database through the logic engine and are sent to the rendering engine, and finally the rendering engine is adopted to load the rendering data to generate the rendering page corresponding to the target applet. By adopting the method, the time consumption for acquiring the rendering data from the background server can be avoided, the repeated rendering of the page is not needed, the time for rendering the small program page is reduced, and the page display speed is improved.
Fig. 5 is a schematic diagram illustrating a data processing method according to an embodiment of the present disclosure. As shown in fig. 5, the following description will take the starting of any applet in the mobile phone client application as an example,
the client responds to a starting instruction of a target applet in the application program to start the applet and initializes a logic engine and a rendering engine of the target applet. And meanwhile, the client detects whether a target storage space corresponding to the target applet exists in a local database corresponding to the application program.
And if the local database does not have the target storage space corresponding to the target applet, acquiring rendering data corresponding to the target applet from the server corresponding to the target applet through the data pull interface, and storing the rendering data into the program storage space corresponding to the application program in the local database. After the initialization of the logic engine and the rendering engine is completed, the client acquires rendering data corresponding to the target applet from a program storage space corresponding to the application program through the logic engine, sends the rendering data to the rendering engine, loads the rendering data and generates a rendering page corresponding to the target applet. Meanwhile, a target storage space corresponding to the target small program is created in the program storage space, and the rendering data are stored in the target storage space.
And if the local database has a target storage space corresponding to the target applet, the client directly acquires rendering data corresponding to the target applet from the target storage space through the logic engine, sends the rendering data to the rendering engine, loads the rendering data and generates a rendering page corresponding to the target applet.
Referring to fig. 6, a schematic structural diagram of a data processing apparatus is provided in an embodiment of the present application. The data processing device may be a computer program (comprising program code) running on a computer device, e.g. an application software; the device can be used for executing the corresponding steps in the method provided by the embodiment of the application. As shown in fig. 5, the data processing apparatus 1 according to the embodiment of the present application may include: an initialization unit 11, a data acquisition unit 12, and a page loading unit 13.
An initialization unit 11, configured to respond to a start instruction of a target applet in an application program and initialize an operating environment of the target applet; the initialization comprises initialization of a logic engine and a rendering engine;
the data acquisition unit 12 is configured to acquire rendering data corresponding to the target applet from a local database through a logic engine, and send the rendering data to the rendering engine;
and a page loading unit 13, configured to load the rendering data by using the rendering engine, and generate a rendering page corresponding to the target applet.
Referring to fig. 6, the data processing apparatus 1 according to the embodiment of the present application may include: an interface creation unit 14.
An interface creating unit 14, configured to create a data pulling interface corresponding to the application program, where the data pulling interface is used to pull rendering data corresponding to the target applet from a background.
Referring to fig. 6, the data processing apparatus 1 according to the embodiment of the present application may include: a detection unit 15.
The detection unit 15 is used for responding to a starting instruction of a target small program in an application program and detecting a corresponding local database of the application program;
if the local database does not have the target storage space corresponding to the target applet, acquiring rendering data corresponding to the target applet from a server corresponding to the target applet through the data pull interface, and storing the rendering data into a program storage space corresponding to the application program in the local database; the program storage space includes the target storage space.
In a possible implementation, the initialization unit 11 is specifically configured to:
responding to a starting instruction of a target applet in an application program, and initializing a logic engine and a rendering engine of the target applet;
downloading a program code corresponding to the target small program from a server of the target small program, and creating a program interface corresponding to the target small program according to the program code.
In a possible implementation, the data obtaining unit 12 is specifically configured to:
and acquiring rendering data corresponding to the target applet from a program storage space corresponding to the application program through a logic engine, and sending the rendering data to a rendering engine.
Referring to fig. 6, the data processing apparatus 1 according to the embodiment of the present application may include: a data storage unit 16.
A data storage unit 16, configured to create a target storage space corresponding to the target applet in the program storage space, and store the rendering data in the target storage space.
In a possible implementation, the data obtaining unit 12 is specifically configured to:
and if the local database has a target storage space corresponding to the target applet, acquiring rendering data corresponding to the target applet from the target storage space through a logic engine, and sending the rendering data to the rendering engine.
In the embodiment of the application, the operating environment of the target applet is initialized by responding to a starting instruction of the target applet in the application program, the initialization comprises the initialization of a logic engine and a rendering engine, the rendering data corresponding to the target applet are further obtained from a local database through the logic engine and are sent to the rendering engine, and finally the rendering engine is adopted to load the rendering data to generate the rendering page corresponding to the target applet. By adopting the method, the time consumption for acquiring the rendering data from the background server can be avoided, the repeated rendering of the page is not needed, the time for rendering the small program page is reduced, and the page display speed is improved.
Referring to fig. 7, a schematic structural diagram of a computer device is provided in an embodiment of the present application. As shown in fig. 7, the computer apparatus 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, memory 1005, at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), and the optional user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The Memory 1005 may be a Random Access Memory (RAM) or a non-volatile Memory (NVM), such as at least one disk Memory. The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 7, the memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a data processing application program.
In the computer apparatus 1000 shown in fig. 7, a network interface 1004 may provide a network communication function, and a user interface 1003 is mainly used as an interface for providing an input for a user; the processor 1001 may be configured to call a data processing application stored in the memory 1005 to implement the description of the data processing method in the embodiment corresponding to any one of fig. 2 to fig. 5, which is not described herein again.
It should be understood that the computer device 1000 described in this embodiment of the present application may perform the description of the data processing method in the embodiment corresponding to any one of fig. 2 to fig. 5, and may also perform the description of the data processing device in the embodiment corresponding to fig. 6, which is not described herein again. In addition, the beneficial effects of the same method are not described in detail.
Further, here, it is to be noted that: an embodiment of the present application further provides a computer-readable storage medium, where a computer program executed by the aforementioned data processing apparatus is stored in the computer-readable storage medium, and the computer program includes program instructions, and when the processor executes the program instructions, the description of the data processing method in any one of the embodiments corresponding to fig. 2 to fig. 5 can be performed, so that details are not repeated here. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in embodiments of the computer-readable storage medium referred to in the present application, reference is made to the description of embodiments of the method of the present application. As an example, program instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network, which may comprise a block chain system.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by a computer program, which may be stored in a computer readable storage medium and executed by a computer to implement the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, an NVM or a RAM.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (10)

1. A data processing method, comprising:
responding to a starting instruction of a target small program in an application program, and initializing the operating environment of the target small program; the initialization comprises initialization of a logic engine and a rendering engine;
acquiring rendering data corresponding to the target applet from a local database through a logic engine, and sending the rendering data to the rendering engine;
and loading the rendering data by adopting the rendering engine to generate a rendering page corresponding to the target applet.
2. The method of claim 1, further comprising:
and creating a data pulling interface corresponding to the application program, wherein the data pulling interface is used for pulling rendering data corresponding to the target applet from a background.
3. The method of claim 2, further comprising:
responding to a starting instruction of a target small program in an application program, and detecting a corresponding local database of the application program;
if the local database does not have the target storage space corresponding to the target applet, acquiring rendering data corresponding to the target applet from a server corresponding to the target applet through the data pull interface, and storing the rendering data into a program storage space corresponding to the application program in the local database; the program storage space includes the target storage space.
4. The method of claim 1, wherein initializing the runtime environment of a target applet in response to a start instruction of the target applet in an application comprises:
responding to a starting instruction of a target applet in an application program, and initializing a logic engine and a rendering engine of the target applet;
and downloading a program code corresponding to the target small program from a server of the target small program, and creating a program interface corresponding to the target small program according to the program code.
5. The method of claim 3, wherein the obtaining, by the logic engine, rendering data corresponding to the target applet from a local database and sending the rendering data to a rendering engine comprises:
and acquiring rendering data corresponding to the target applet from a program storage space corresponding to the application program through a logic engine, and sending the rendering data to a rendering engine.
6. The method of claim 5, further comprising:
and creating a target storage space corresponding to the target applet in the program storage space, and storing the rendering data to the target storage space.
7. The method of claim 3, wherein the obtaining, by the logic engine, rendering data corresponding to the target applet from a local database and sending the rendering data to a rendering engine comprises:
and if the local database has a target storage space corresponding to the target applet, acquiring rendering data corresponding to the target applet from the target storage space through a logic engine, and sending the rendering data to the rendering engine.
8. A data processing apparatus, characterized by comprising:
the initialization unit is used for responding to a starting instruction of a target small program in an application program and initializing the running environment of the target small program; the initialization comprises initialization of a logic engine and a rendering engine;
the data acquisition unit is used for acquiring rendering data corresponding to the target applet from a local database through a logic engine and sending the rendering data to the rendering engine;
and the page loading unit is used for loading the rendering data by adopting the rendering engine and generating a rendering page corresponding to the target applet.
9. A computer-readable storage medium, in which a computer program is stored which is adapted to be loaded by a processor and to carry out the method of any one of claims 1 to 7.
10. A computer device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method of any of claims 1-7.
CN202110412134.4A 2021-04-16 2021-04-16 Data processing method and equipment Pending CN115220803A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110412134.4A CN115220803A (en) 2021-04-16 2021-04-16 Data processing method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110412134.4A CN115220803A (en) 2021-04-16 2021-04-16 Data processing method and equipment

Publications (1)

Publication Number Publication Date
CN115220803A true CN115220803A (en) 2022-10-21

Family

ID=83604185

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110412134.4A Pending CN115220803A (en) 2021-04-16 2021-04-16 Data processing method and equipment

Country Status (1)

Country Link
CN (1) CN115220803A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117348948A (en) * 2023-12-04 2024-01-05 南京掌控网络科技有限公司 Applet engine running on self-contained App

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117348948A (en) * 2023-12-04 2024-01-05 南京掌控网络科技有限公司 Applet engine running on self-contained App
CN117348948B (en) * 2023-12-04 2024-03-22 南京掌控网络科技有限公司 Applet engine running on self-contained App

Similar Documents

Publication Publication Date Title
CN109165050B (en) Program running method and device, computing equipment and storage medium
CN103914205B (en) A kind of file thumbnail methods of exhibiting of intelligent terminal and device
CN103345405A (en) Application program starting method and device and client
CN104978180B (en) Unprocessed event prompting method and device and mobile terminal
CN109582317B (en) Method and apparatus for debugging hosted applications
CN106375866B (en) Page loading method and terminal
CN112035768A (en) Page rendering method and device for fast application, storage medium and electronic equipment
CN115309470B (en) Method, device, equipment and storage medium for loading widget
CN114116092A (en) Cloud desktop system processing method, cloud desktop system control method and related equipment
CN114218890A (en) Page rendering method and device, electronic equipment and storage medium
CN111078316A (en) Layout file loading method and device, storage medium and electronic equipment
CN115220803A (en) Data processing method and equipment
CN114610446B (en) Method, device and system for automatically injecting probe
CN114028801A (en) User input method, device, equipment and storage medium based on cloud
CN114780888A (en) Webpage picture generation method and system, electronic equipment and storage medium
CN114237743A (en) Interface loading method and device, electronic equipment and storage medium
CN112861049B (en) Method for dynamically managing picture buffer space and display device
CN114896011B (en) Method and device for playing dynamic content in page, electronic equipment and storage medium
CN112286419B (en) Method, device, terminal and storage medium for loading list data
CN116627682B (en) Remote industrial information detection method and device based on shared memory
CN113760431B (en) Application control method and device, electronic equipment and readable storage medium
CN113268300B (en) Information display method and device
CN113361235B (en) HTML file generation method and device, electronic equipment and readable storage medium
CN109144446B (en) Image display method, image display device, electronic equipment and computer readable storage medium
CN114398131A (en) Information display method, device, equipment, medium and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination