Method, device and terminal for accelerating starting of web page based on object pool

An object pool and web page technology, applied in the Internet field, can solve problems such as time-consuming and reduce user experience, and achieve the effect of avoiding system burden, reducing the probability of cold start, and improving speed.

Active Publication Date: 2017-05-10
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the webpage is opened for the first time, the same running environment needs to be initialized every time. The repeated initialization of these objects takes up nearly half of the time in the webpage loading process, which significantly reduces the user experience.
[0003] In addition, if the application running the web page opens the previously closed web page again without exiting, the system will go through a hot start process. Because the hot start depends on some variable environments, these environment variables must be reloaded every time the web page is reloaded, so time-consuming

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, device and terminal for accelerating starting of web page based on object pool
  • Method, device and terminal for accelerating starting of web page based on object pool
  • Method, device and terminal for accelerating starting of web page based on object pool

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0054] A method for accelerating web page startup based on an object pool, the method is as follows figure 1 shown, including:

[0055] S101. In response to a webpage start instruction, request a webpage environment object from an object pool; the object pool is used to manage the webpage environment object, and the webpage environment object stores an operating environment required for loading a webpage.

[0056] Specifically, the object pool manages web page environment objects through a stack. The web page environment object is transmitted to the application program that needs to open the web page through a pop action, and the web page environment object is pushed into the object pool through a push action.

[0057] Each webpage environment object includes a webpage initialization method and a release method. The webpage environment object loads the webpage runtime environment through the webpage initialization method. Each webpage environment object managed by the object...

Embodiment 2

[0078] A method for accelerating web page startup based on an object pool, comprising:

[0079] S201. In response to a webpage start instruction, request a webpage environment object from an object pool; the object pool is used to manage the webpage environment object, and the webpage environment object stores an operating environment required for loading a webpage.

[0080] Specifically, the object pool manages web page environment objects through queues. The webpage environment object is transferred to the application program that needs to open the webpage through the action of entering the queue, and the webpage environment object is pushed into the object pool through the action of removing the queue.

[0081] Each webpage environment object includes a webpage initialization method and a release method. The webpage environment object loads the webpage runtime environment through the webpage initialization method. Each webpage environment object managed by the object pool ...

Embodiment 3

[0100] A web page startup acceleration device based on an object pool, such as Figure 6 shown, including:

[0101] The web page start command response module 301 is used to request the web page environment object from the object pool in response to the web page start command;

[0102] The object pool module 302 is configured to manage the webpage environment object through the object pool, and the webpage environment object stores the running environment required for loading the webpage;

[0103] A webpage environment object acquisition module 303, configured to acquire the webpage environment object;

[0104] A webpage loading module 304, configured to load a webpage through the webpage environment object;

[0105] The webpage closing instruction response module 305 is configured to release the webpage environment object and return the webpage environment object to the object pool in response to the webpage closing instruction.

[0106] Further, it also includes:

[0107...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method, device and terminal for accelerating starting of web page based on object pool. The method comprises the steps of before a web page is loaded, pre-building a web page environment object, submitting the web page environment object to a object pool for integral management to achieve the direct opening of the web page through the web page environment object based on a universal resource locator, thus during cold starting, saving the time needed to initialize the web page running environment and during hot starting ,saving time to load variable environment to accelerate the web page loading speed, and enhance user's experience. Moreover, according to the method, device and terminal for accelerating starting of web page based on object pool, the object pool manages one or more web page environment objects, each web page environment object takes memory space, the technical scheme automatically adjusts the volume of the object pool based on the content volume to avoid the system burden caused by the memory space occupation by the object pool.

Description

technical field [0001] The invention relates to the field of the Internet, in particular to a method, device and terminal for accelerating web page startup based on an object pool. Background technique [0002] When a web page is opened for the first time, the system goes through a cold boot process. Cold start takes a long time because it needs to initialize the operating environment. The running environment includes, but is not limited to, public scripts, controls, sharing interfaces or navigation interfaces. When a webpage is opened for the first time, the same operating environment needs to be initialized every time. The repeated initialization of these objects takes up nearly half of the time in the webpage loading process, which significantly reduces the user experience. [0003] In addition, if the application running the web page opens the previously closed web page again without exiting, the system will go through a hot start process. Because the hot start depends...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/9574
Inventor 李论
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products