Nothing Special   »   [go: up one dir, main page]

CN106649595A - Method, device and terminal for accelerating starting of web page based on object pool - Google Patents

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

Info

Publication number
CN106649595A
CN106649595A CN201611044881.2A CN201611044881A CN106649595A CN 106649595 A CN106649595 A CN 106649595A CN 201611044881 A CN201611044881 A CN 201611044881A CN 106649595 A CN106649595 A CN 106649595A
Authority
CN
China
Prior art keywords
webpage
web environment
pool
object pool
environment object
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.)
Granted
Application number
CN201611044881.2A
Other languages
Chinese (zh)
Other versions
CN106649595B (en
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 Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201611044881.2A priority Critical patent/CN106649595B/en
Publication of CN106649595A publication Critical patent/CN106649595A/en
Application granted granted Critical
Publication of CN106649595B publication Critical patent/CN106649595B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

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

It is a kind of based on the webpage Acceleration of starting method of object pool, device and terminal
Technical field
The present invention relates to internet arena, more particularly to it is a kind of based on the webpage Acceleration of starting method of object pool, device and Terminal.
Background technology
When webpage is initially opened, system can experience the process of cold start-up.Cold start-up since it is desired that initialization running environment, So time-consuming longer.The running environment includes but is not limited to public script, control, shares interface or navigation interface.In net When page is initially opened, it is required to initialize same running environment every time, the initialization repeatedly of these objects occupies webpage and adds Nearly half is time-consuming during load, significantly reduces Consumer's Experience.
Additionally, the application program of operation webpage is again turned on the webpage being previously powered down, system in the case where not exiting Thermal starting process can be experienced, thermal starting is reloaded every time webpage and be intended to reload these because relying on some variable environment Environmental variance, thus it is time-consuming also relatively more long.
The content of the invention
In order to solve above-mentioned technical problem, the present invention propose it is a kind of based on the webpage Acceleration of starting method of object pool, be System and terminal, by building web environment object in advance before webpage is loaded, and transfer to object pool to enter web environment object Row unified management, so as to when webpage needs to be opened, web environment object can be passed through according to URL direct Webpage is opened, load when the time and thermal starting that need to initialize webpage running environment during cold start-up variable environment so as to save Time, so as to accelerate webpage toggle speed, lift Consumer's Experience.
What the present invention was specifically realized with following technical scheme:
A kind of webpage Acceleration of starting method based on object pool, methods described includes:
In response to webpage enabled instruction, to object pool requested webpage environmental objects;The object pool is used to manage the net Page environmental objects, the running environment needed for the loading webpage that is stored with the web environment object;
If obtaining web environment object, webpage is loaded by the web environment object;
In response to webpage out code, the release web environment object is simultaneously described right by web environment object return As pond.
Further, if not obtaining web environment object, web environment object is built, and by the web environment pair As loading webpage, after webpage is closed, discharge the web environment object and the web environment object is sent to described right As pond.
Further, in response to application start instruction, whether decision processor is idle:
If it is not, then waiting until the processor builds object pool after the free time;
If so, direct construction object pool;
The structure object pool includes:
Initialization object pool;
Webpage running environment is built, and the webpage running environment is encapsulated as into web environment object;
Add the web environment object to the object pool.
Further, whether decision processor is idle:
If it is not, default time interval query processor state is then spaced, until processor is idle.
Further, also include:The capacity of object pool according to free memory capacity adjust automatically.
Further, if receiving internal memory warning, the object pool discharges the web environment object being not used by.
A kind of webpage Acceleration of starting device based on object pool, including:
Webpage enabled instruction respond module, in response to webpage enabled instruction, to object pool requested webpage environmental objects;
Object pool module, for managing the web environment object by object pool, stores in the web environment object There is the running environment needed for loading webpage;
Web environment object acquisition module, for obtaining web environment object;
Webpage load-on module, for loading webpage by the web environment object;
Webpage out code respond module, in response to webpage out code, discharging the web environment object webpage The web environment object returns the object pool.
Further, also include:
Web environment object builds module, for building web environment object;
Web environment object sending module, for the web environment object to be sent to the object pool.
Further, also include:Processor state judge module, it is whether idle for processor.
Further, the web environment object builds module and includes:
Initialization unit, for initializing object pool;
Construction unit, for building webpage running environment, and is encapsulated as web environment object by the webpage running environment;
Adding device, for adding the web environment object to the object pool.
Further, also include:Interval enquiry module, for being spaced default time interval query processor state.
Further, also include:Dynamic adjusting module, for the object pool according to free memory capacity adjust automatically Capacity.
A kind of webpage Acceleration of starting terminal based on object pool, the terminal is opened including above-mentioned based on the webpage of object pool Dynamic acceleration system.
The present invention's is a kind of based on the webpage Acceleration of starting method of object pool, system and terminal, has the advantages that:
(1) by building web environment object in advance before webpage is loaded, and web environment object is transferred to into object pool It is managed collectively, so as to when webpage needs to be opened, web environment object can be passed through according to URL straight Webpage is taken out, so as to reduce the probability of the cold start-up for needing to initialize running environment, and webpage running environment is applying journey The operational factor needed for thermal starting can be preserved in sequence, so as to improve the speed of thermal starting.
(2) object pool and web environment object are just built at the beginning of application program launching, it is achieved thereby that beating in webpage For the preloading of webpage before opening, initialization the cold of running environment is needed to open so as to experience when avoiding webpage from being opened first It is dynamic.
(3) object pool manages one or more web environment objects, each web environment object committed memory space, The capacity of this programme object pool according to memory size adjust automatically, so as to avoid object pool from making for the occupancy of memory headroom Into system burden.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the webpage Acceleration of starting method flow diagram based on object pool that the embodiment of the present invention 1 is provided;
Fig. 2 is the schematic diagram of the web environment object flow direction that the embodiment of the present invention 1 is provided;
Fig. 3 is the flow chart that the object pool that the embodiment of the present invention 1 is provided builds opportunity acquisition methods;
Fig. 4 is the flow chart of the object pool construction method that the embodiment of the present invention 1 is provided;
Fig. 5 is the flow chart of the method for the opening webpage that the embodiment of the present invention 2 is provided;
Fig. 6 is the block diagram of the webpage Acceleration of starting device that the embodiment of the present invention 3 is provided;
Fig. 7 is the block diagram that the web environment object that the embodiment of the present invention 3 is provided builds module;
Fig. 8 is the structured flowchart of the terminal that the embodiment of the present invention 5 is provided.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, those of ordinary skill in the art obtained on the premise of creative work is not made it is all its His embodiment, belongs to the scope of protection of the invention.
Embodiment 1:
A kind of webpage Acceleration of starting method based on object pool, methods described as shown in figure 1, including:
S101. in response to webpage enabled instruction, to object pool requested webpage environmental objects;The object pool is used to manage institute Web environment object is stated, the running environment needed for the loading webpage that is stored with the web environment object.
Specifically, object pool passes through stack administration web page environmental objects.Web environment object is passed by ejecting (pop) action The application program for needing to open webpage is transported to, web environment object is pressed into into object pool by being pressed into (push) action.
Each web environment object includes webpage initial method and method for releasing.Web environment object is by the beginning of webpage Beginning method loads webpage running environment, and each is by the web environment object of object pool management by webpage initialization side Method has carried out the loading of webpage running environment, and stores the result that webpage running environment is loaded, and therefore, it can be used for quickly Complete the loading of webpage.Because webpage running environment can take more memory source, therefore each web environment object can The memory source taken by webpage running environment is discharged by method for releasing, the memory source is returned to into operating system.
If S102. obtaining web environment object, webpage is loaded by the web environment object.
Need the application program for opening webpage after web environment object is obtained, the unified resource of webpage to be loaded is positioned Symbol (url) is transferred to the web environment object, and by the web environment object webpage is opened.
If S103. not obtaining web environment object, web environment object is built, and added by the web environment object Contained network page.
S104. in response to webpage out code, the web environment object is discharged, the web environment object is returned described Object pool.
Application program monitors webpage out code, then discharge the web environment object of opening the webpage and will be described Web environment object is given back to object pool.
Specifically, the present embodiment is applied to the application program for using UIWebView controls to provide web service. UIWebView is used for the embedded web page content in application program app (application), is under normal circumstances by hypertext mark The webpage of note language (html) form description, also supports portable document format (pdf) and word document.
Specifically, web environment object is WebViewController in the present embodiment, as shown in Fig. 2 an object pool Manage one or more WebViewController.When needing to open webpage, object pool ejects web environment object;Webpage Environmental objects come into operation;After web environment object is using terminating, the web environment object is reclaimed by object pool.Specifically Ground, web environment object can not only store webpage running environment in the present embodiment, it is also possible to store thermal starting in application program Required operational factor, so as to improve the speed of thermal starting.
Further, the structure of object pool can be carried out at the beginning of application program launching, specifically, as shown in figure 3, bag Include:
A1. in response to application start instruction, whether decision processor is idle:
A2. if it is not, then waiting until the processor builds object pool after the free time;It is spaced default time interval Directory Enquiries Reason device state, until processor is idle;
A3. object pool is if so, built.
The specific number that web environment object builds can be preset based on experience value;Number is too high, can take More memory headroom;Number is excessive, it is impossible to be obviously improved the speed of webpage unlatching, therefore, it is rich by collecting in the present embodiment Rich empirical documentation and combine web page browsing actual demand set acquiescence structure web environment object as 3.Certainly at other In embodiment, as the case may be, the specific number of the web environment object of setting can also unnecessary 3 or less than 3.
It is described structure object pool as shown in figure 4, including:
B1. object pool is initialized;
B2. webpage running environment is built, and the webpage running environment is encapsulated as into web environment object;
B3. the web environment object is added to the object pool.
Further, also include:The capacity of object pool according to free memory capacity adjust automatically.
Further, if receiving internal memory warning, the object pool discharges the web environment object being not used by.
A kind of webpage Acceleration of starting method based on object pool is present embodiments provided, by advance before webpage is loaded Web environment object is built, and transfers to object pool to be managed collectively web environment object, so as to need to be opened in webpage When, webpage can directly be opened by web environment object according to URL, need initialization operation so as to reduce The probability of the cold start-up of environment, and improve the speed of thermal starting.Additionally, object pool manages one or more web environments pair As, each web environment object committed memory space, the appearance of this programme object pool according to memory size adjust automatically Amount, so as to avoid object pool from causing system burden for the occupancy of memory headroom.
Embodiment 2:
A kind of webpage Acceleration of starting method based on object pool, including:
S201. in response to webpage enabled instruction, to object pool requested webpage environmental objects;The object pool is used to manage institute Web environment object is stated, the running environment needed for the loading webpage that is stored with the web environment object.
Specifically, object pool passes through queue management web environment object.By into team posture by web environment object Transmit to the application program for needing opening webpage, web environment object is pressed into into object pool by removing team posture.
Each web environment object includes webpage initial method and method for releasing.Web environment object is by the beginning of webpage Beginning method loads webpage running environment, and each is by the web environment object of object pool management by webpage initialization side Method has carried out the loading of webpage running environment, and stores the result that webpage running environment is loaded, and therefore, it can be used for quickly Complete the loading of webpage.Because webpage running environment can take more memory source, therefore each web environment object can The memory source taken by webpage running environment is discharged by method for releasing, the memory source is returned to into operating system.
If S202. obtaining web environment object, webpage is loaded by the web environment object.
Need the application program for opening webpage after web environment object is obtained, the unified resource of webpage to be loaded is positioned Symbol (url) is transferred to the web environment object, and by the web environment object webpage is opened.
If S203. not obtaining web environment object, web environment object is built, and added by the web environment object Contained network page.
S204. in response to webpage out code, the web environment object is discharged, the web environment object is returned described Object pool.
Application program for opening webpage can open one or more webpages, often open a webpage and be accomplished by using One web environment object.Specifically, the web environment object for being used by omniselector management in application program, the omniselector Implementation include but is not limited to heap, stack, array or chained list.
Specifically, the method for application program opening webpage is as shown in Figure 5:
C1. web environment object is obtained;
C2. the web environment object is added into into omniselector, the web environment object includes webpage to be loaded correspondence URL (url);
C3. the URL (url) of webpage to be loaded is transferred to into the web environment object, by the webpage Environmental objects open the webpage;
If C4. receiving webpage out code, the webpage is closed, and by the corresponding web environment object of the webpage Remove omniselector;
C5. the web environment object transfer is managed to object pool.
Specifically, if receiving webpage out code, application program is according to the corresponding unification of the webpage out code URLs (url) searches corresponding web environment object in the omniselector, and the web environment object is removed Omniselector, and then transmit to object pool, so as to realize for the recycling of web environment object.
Specifically, the present embodiment is applied to the application program for using UIWebView controls to provide web service. UIWebView is used for the embedded web page content in application program app (application), is under normal circumstances by hypertext mark The webpage of note language (html) form description, also supports portable document format (pdf) and word document.
Specifically, web environment object is WebViewController in the present embodiment, object pool manage one or Multiple WebViewController, the omniselector of application program is UINavigationViewController.In application program In running, the situation of change of monitor in real time UINavigationViewController, when WebViewController from Just illustrate that it need not be used after removing in UINavigationViewController objects, just can put it into object Chi Zhong.
Further, in application program running, if any time receives internal memory warning, the object pool is released Bleed off the web environment object being not used by.
Specifically, each the web environment object in the object pool calls the method for releasing of itself to discharge certainly The webpage running environment that body is stored, and call the destructor function of itself to complete the destructed of itself, and then thoroughly discharge described Full memory shared by web environment object.
A kind of webpage Acceleration of starting method based on object pool is present embodiments provided, in the application by omniselector Administration web page environmental objects, so as to realize application program in webpage quick loading.Additionally, the present embodiment can hold according to internal memory The capacity of object pool described in amount adjust automatically, so as to can thoroughly be sold to web environment object in internal memory heavy load Ruin, it is to avoid RAM leakage.
Embodiment 3:
A kind of webpage Acceleration of starting device based on object pool, as shown in fig. 6, including:
Webpage enabled instruction respond module 301, in response to webpage enabled instruction, to object pool requested webpage environment pair As;
Object pool module 302, for managing the web environment object by object pool, deposits in the web environment object Contain the running environment needed for loading webpage;
Web environment object acquisition module 303, for obtaining web environment object;
Webpage load-on module 304, for loading webpage by the web environment object;
Webpage out code respond module 305, in response to webpage out code, discharging the web environment object simultaneously The web environment object is returned into the object pool.
Further, also include:
Web environment object builds module 306, for building web environment object;
Web environment object sending module 307, for the web environment object to be sent to the object pool.
Webpage enabled instruction respond module 301 and webpage out code respond module 305 are used for and user mutual, perceive and use The instruction that family sends.
If detecting webpage enabled instruction, web environment object acquisition module 303 to object pool module 302 applies for webpage Environmental objects, if applying successfully, object pool module 302 returns web environment object;If application failure, is built by web environment Module 306 builds web environment object, and by the web environment object transfer to web environment object acquisition module 303.
Further, also include:
Processor state judge module 308, it is whether idle for processor 310.
Interval enquiry module 309, for being spaced the default state of time interval query processor 310.
By the state of 308 decision processor of processor state judge module 310, if processor is busy, by interval enquiry module 309 each default state of time interval query processor 310, if processor 310 is idle, by structure object pool module 302 Build object pool.
Further, also include:Dynamic adjusting module 311, for the object according to free memory capacity adjust automatically The capacity in pond.
Further, as shown in fig. 7, web environment object structure module 306 includes:
Initialization unit 3061, for initializing object pool;
Construction unit 3062, for building webpage running environment, and is encapsulated as web environment object by the running environment;
Adding device 3063, for adding the web environment object to the object pool.
The present embodiment is based on similarly inventive concept, there is provided a kind of webpage Acceleration of starting device based on object pool, this Embodiment is implemented for the webpage Acceleration of starting method based on object pool provided in above-described embodiment.
Embodiment 4:
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can For preserving the program code performed by webpage Acceleration of starting method of the above-described embodiment based on object pool.
Alternatively, in the present embodiment, above-mentioned storage medium may be located in multiple network equipments of computer network At least one network equipment.
Alternatively, in the present embodiment, storage medium is arranged to store the program code for performing following steps:
The first step, in response to webpage enabled instruction, to object pool requested webpage environmental objects;The object pool is used to manage The web environment object, the running environment needed for the loading webpage that is stored with the web environment object;
Second step, if obtaining web environment object, by the web environment object webpage is loaded;
3rd step, in response to webpage out code, discharges the web environment object and returns the web environment object Also described object pool.
Alternatively, storage medium is also configured to store the program code for performing following steps:If not obtaining webpage Environmental objects, then build web environment object, and loads webpage by the web environment object, after webpage is closed, release The web environment object simultaneously sends the web environment object to the object pool.
Alternatively, storage medium is also configured to store the program code for performing following steps:
The first step, in response to application start instruction, whether decision processor is idle:
Second step, if it is not, then waiting until the processor builds object pool after the free time;
3rd step, if so, direct construction object pool;
The structure object pool includes:
The first step, initializes object pool;
Second step, builds webpage running environment, and the webpage running environment is encapsulated as into web environment object;
3rd step, to the object pool web environment object is added.
Alternatively, storage medium is also configured to store the program code for performing following steps:
Whether decision processor is idle:
If it is not, default time interval query processor state is then spaced, until processor is idle.
Alternatively, storage medium is also configured to store the program code for performing following steps:
The capacity of object pool according to free memory capacity adjust automatically.
Alternatively, storage medium is also configured to store the program code for performing following steps:
If receiving internal memory warning, the object pool discharges the web environment object being not used by.
Alternatively, in the present embodiment, above-mentioned storage medium can be including but not limited to:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. is various can be with the medium of store program codes.
Embodiment 5:
Referring to Fig. 8, a kind of terminal is embodiments provided, the terminal can be used for implementing to be provided in above-described embodiment The webpage Acceleration of starting based on object pool method.Specifically:
The terminal can include RF (Radio Frequency, radio frequency) circuit 110, include one or more The memory 120 of computer-readable recording medium, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, include one or the process of more than one processing core The part such as device 180 and power supply 190.It will be understood by those skilled in the art that the terminal structure illustrated in Fig. 8 do not constitute it is right The restriction of terminal, can include part more more or less of than diagram, or combine some parts, or different part cloth Put.Wherein:
RF circuits 110 can be used to receiving and sending messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information is received, transfer to one or more than one processor 180 is processed;In addition, will be related to up data is activation to Base station.Generally, RF circuits 110 include but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, use Family identity module (SIM) card, transceiver, coupler, LNA (LowNoiseAmplifier, low-noise amplifier), duplexer Deng.Additionally, RF circuits 110 can also be communicated by radio communication with network and other equipment.The radio communication can be used Arbitrary communication standard or agreement, including but not limited to GSM (Global System ofMobile communication, the whole world Mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division MultipleAccess, CDMA), WCDMA (Wideband Code Division MultipleAccess, WCDMA), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc..
Memory 120 can be used to store software program and module, and processor 180 is stored in memory 120 by operation Software program and module, so as to perform various function application and data processing.Memory 120 can mainly include storage journey Sequence area and storage data field, wherein, application program that storing program area can be needed for storage program area, function etc.;Data storage Area can store and use created data etc. according to the terminal.Additionally, memory 120 can be deposited including high random access Reservoir, can also include nonvolatile memory, for example, at least one disk memory, flush memory device or other volatibility Solid-state memory.Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input block The access of 130 pairs of memories 120.
Input block 130 can be used for the numeral or character information of receives input, and produce and user's setting and function The relevant keyboard of control, mouse, action bars, optics or trace ball signal input.Specifically, input block 130 may include to touch Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, can collect use Family thereon or neighbouring touch operation (such as user is using any suitable objects such as finger, stylus or annex in touch-sensitive table Operation on face 131 or near Touch sensitive surface 131), and corresponding attachment means are driven according to formula set in advance.It is optional , Touch sensitive surface 131 may include two parts of touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and the signal that touch operation brings is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection means, and is converted into contact coordinate, then give processor 180, and can receiving processor 180 The order sent simultaneously is performed.Furthermore, it is possible to using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize Touch sensitive surface 131.Except Touch sensitive surface 131, input block 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One or more in trace ball, mouse, action bars etc..
Display unit 140 can be used to showing by user input information or be supplied to the information and the terminal of user Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination. Display unit 140 may include display floater 141, optionally, can adopt LCD (Liquid Crystal Display, liquid crystal Show device), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) to be configuring display floater 141.Further, Touch sensitive surface 131 can cover display floater 141, when Touch sensitive surface 131 is detected thereon or neighbouring is touched After touching operation, processor 180 is sent to determine the type of touch event, with preprocessor 180 according to the type of touch event Corresponding visual output is provided on display floater 141.Although in fig. 8, Touch sensitive surface 131 and display floater 141 are conducts Two independent parts come realize input and input function, but in some embodiments it is possible to by Touch sensitive surface 131 with show Panel 141 is integrated and realization is input into and output function.
The terminal may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusting the brightness of display floater 141, when the terminal is moved in one's ear can close and show by proximity transducer Panel 141 and/or backlight.As one kind of motion sensor, in the detectable all directions of Gravity accelerometer (generally Three axles) acceleration size, size and the direction of gravity is can detect that when static, can be used for identification terminal attitude application (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely The other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared ray sensor that can also configure in the terminal, here Repeat no more.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the COBBAIF between user and the terminal.Sound Electric signal after the voice data for receiving conversion can be transferred to loudspeaker 161 by frequency circuit 160, be converted to by loudspeaker 161 Voice signal is exported;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, is received by voicefrequency circuit 160 After be converted to voice data, then after voice data output processor 180 is processed, Jing RF circuits 110 are such as another to be sent to Terminal, or voice data is exported to memory 120 so as to further process.Voicefrequency circuit 160 is also possible that earplug is inserted Hole, to provide the communication of peripheral hardware earphone and the terminal.
WiFi belongs to short range wireless transmission technology, and the terminal can help user's transmitting-receiving electricity by WiFi module 170 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and has accessed.Although Fig. 8 shows Go out WiFi module 170, but it is understood that, it is simultaneously not belonging to must be configured into for the terminal, completely can be according to need To omit in the essential scope for do not change invention.
Processor 180 is the control centre of the terminal, using various interfaces and each portion of the whole terminal of connection Point, by operation or perform and be stored in software program and/or module in memory 120, and call and be stored in memory 120 Interior data, perform the various functions and processing data of the terminal, so as to carry out integral monitoring to terminal.Optionally, process Device 180 may include one or more processing cores;Preferably, processor 180 can integrated application processor and modulation /demodulation process Device, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor is mainly located Reason radio communication.It is understood that above-mentioned modem processor can not also be integrated in processor 180.
The terminal also includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can be by electricity Management system is logically contiguous with processor 180, so as to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 190 can also include one or more direct current or AC power, recharging system, power supply event The random component such as barrier detection circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, the terminal can also include camera, bluetooth module etc., will not be described here.Specifically at this In embodiment, the display unit of terminal is touch-screen display, and terminal also includes memory, and one or more than one Program, one of them or more than one program storage is configured to by one or more than one in memory Reason device execution states one or more than one program bag contains the instruction for being used for carrying out following operation:
The first step, in response to webpage enabled instruction, to object pool requested webpage environmental objects;The object pool is used to manage The web environment object, the running environment needed for the loading webpage that is stored with the web environment object;
Second step, if obtaining web environment object, by the web environment object webpage is loaded;
3rd step, in response to webpage out code, discharges the web environment object and returns the web environment object Also described object pool.
Further, in the memory of terminal, also comprising for performing the instruction of following operation:
If not obtaining web environment object, web environment object is built, and contained network is added by the web environment object Page, after webpage is closed, discharges the web environment object and the web environment object is sent to the object pool.
Further, in the memory of terminal, also comprising for performing the instruction of following operation:
The first step, in response to application start instruction, whether decision processor is idle:
Second step, if it is not, then waiting until the processor builds object pool after the free time;
3rd step, if so, direct construction object pool;
The structure object pool includes:
The first step, initializes object pool;
Second step, builds webpage running environment, and the webpage running environment is encapsulated as into web environment object;
3rd step, to the object pool web environment object is added.
Further, in the memory of terminal, also comprising for performing the instruction of following operation:
Whether decision processor is idle:
If it is not, default time interval query processor state is then spaced, until processor is idle.
Further, in the memory of terminal, also comprising for performing the instruction of following operation:
The capacity of object pool according to free memory capacity adjust automatically.
Further, in the memory of terminal, also comprising for performing the instruction of following operation:
If receiving internal memory warning, the object pool discharges the web environment object being not used by.
To sum up, terminal provided in an embodiment of the present invention, by building web environment object in advance before webpage is loaded, and Object pool is transferred to be managed collectively web environment object, so as to when webpage needs to be opened, can be according to unified resource Finger URL directly opens webpage by web environment object, so as to save need during cold start-up initialize webpage running environment when Between and time of variable environment is loaded during thermal starting, so as to accelerate webpage toggle speed, lift Consumer's Experience.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
If the integrated unit in above-described embodiment is realized and as independent product using in the form of SFU software functional unit When selling or using, during the storage medium that above computer can read can be stored in.Based on such understanding, the skill of the present invention The part or all or part of the technical scheme that art scheme substantially contributes in other words to prior art can be with soft The form of part product is embodied, and the computer software product is stored in storage medium, including some instructions are used so that one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) perform each embodiment institute of the invention State all or part of step of method.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in certain embodiment The part of detailed description, may refer to the associated description of other embodiment.
In several embodiments provided herein, described device embodiment is only schematic, such as institute The division of unit is stated, only a kind of division of logic function can have other dividing mode, such as multiple lists when actually realizing Unit or component can with reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, Shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, unit or module INDIRECT COUPLING or communication connection, can be electrical or other forms.
The unit as separating component explanation can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can according to the actual needs be selected to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list Unit both can be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (13)

1. a kind of webpage Acceleration of starting method based on object pool, it is characterised in that methods described includes:
In response to webpage enabled instruction, to object pool requested webpage environmental objects;The object pool is used to manage the webpage ring Border object, the running environment needed for the loading webpage that is stored with the web environment object;
If obtaining web environment object, webpage is loaded by the web environment object;
In response to webpage out code, discharge the web environment object and the web environment object is returned into the object Pond.
2. method according to claim 1, it is characterised in that:
If not obtaining web environment object, web environment object is built, and webpage is loaded by the web environment object, treated After webpage is closed, discharge the web environment object and the web environment object is sent to the object pool.
3. method according to claim 1, it is characterised in that:
In response to application start instruction, whether decision processor is idle:
If it is not, then waiting until the processor builds object pool after the free time;
If so, direct construction object pool;
The structure object pool includes:
Initialization object pool;
Webpage running environment is built, and the webpage running environment is encapsulated as into web environment object;
Add the web environment object to the object pool.
4. method according to claim 3, it is characterised in that:
Whether decision processor is idle:
If it is not, default time interval query processor state is then spaced, until processor is idle.
5. method according to claim 1, it is characterised in that also include:
The capacity of object pool according to free memory capacity adjust automatically.
6. method according to claim 5, it is characterised in that:
If receiving internal memory warning, the object pool discharges the web environment object being not used by.
7. a kind of webpage Acceleration of starting device based on object pool, it is characterised in that include:
Webpage enabled instruction respond module, in response to webpage enabled instruction, to object pool requested webpage environmental objects;
Object pool module, for managing the web environment object by object pool, is stored with the web environment object and adds Running environment needed for contained network page;
Web environment object acquisition module, for obtaining web environment object;
Webpage load-on module, for loading webpage by the web environment object;
Webpage out code respond module, in response to webpage out code, the release web environment object simultaneously will be described Web environment object returns the object pool.
8. device according to claim 7, it is characterised in that also include:
Web environment object builds module, for building web environment object;
Web environment object sending module, for the web environment object to be sent to the object pool.
9. device according to claim 7, it is characterised in that also include:
Processor state judge module, it is whether idle for processor.
10. device according to claim 8, it is characterised in that the web environment object builds module to be included:
Initialization unit, for initializing object pool;
Construction unit, for building webpage running environment, and is encapsulated as web environment object by the webpage running environment;
Adding device, for adding the web environment object to the object pool.
11. devices according to claim 7, it is characterised in that also include:
Interval enquiry module, for being spaced default time interval query processor state.
12. devices according to claim 7, it is characterised in that also include:
Dynamic adjusting module, for the capacity of the object pool according to free memory capacity adjust automatically.
13. a kind of webpage Acceleration of starting terminals based on object pool, it is characterised in that the terminal is included in claim 7-12 The webpage Acceleration of starting system based on object pool described in any one.
CN201611044881.2A 2016-11-22 2016-11-22 Object pool-based webpage starting acceleration method and device and terminal Active CN106649595B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611044881.2A CN106649595B (en) 2016-11-22 2016-11-22 Object pool-based webpage starting acceleration method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611044881.2A CN106649595B (en) 2016-11-22 2016-11-22 Object pool-based webpage starting acceleration method and device and terminal

Publications (2)

Publication Number Publication Date
CN106649595A true CN106649595A (en) 2017-05-10
CN106649595B CN106649595B (en) 2020-10-27

Family

ID=58811648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611044881.2A Active CN106649595B (en) 2016-11-22 2016-11-22 Object pool-based webpage starting acceleration method and device and terminal

Country Status (1)

Country Link
CN (1) CN106649595B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107154068A (en) * 2017-05-11 2017-09-12 腾讯科技(深圳)有限公司 A kind of animation producing method, device, client and computer-readable recording medium
CN108958824A (en) * 2017-05-18 2018-12-07 龙芯中科技术有限公司 Starting method, apparatus, electronic equipment and the storage medium of application program
CN109298901A (en) * 2018-08-29 2019-02-01 百度在线网络技术(北京)有限公司 Object processing method, device, equipment, storage medium and vehicle

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101561859A (en) * 2008-04-16 2009-10-21 杨奎 Method and system for online issue and use of software
CN102289380A (en) * 2010-06-21 2011-12-21 上海中标软件有限公司 firefox starting acceleration method
US20120297291A1 (en) * 2009-08-03 2012-11-22 Limelight Networks, Inc. Acceleration and optimization of web pages access by changing the order of resource loading
CN105160010A (en) * 2015-09-22 2015-12-16 北京金山安全软件有限公司 Method and device for starting browser through external link and terminal equipment
CN105446750A (en) * 2014-05-30 2016-03-30 阿里巴巴集团控股有限公司 Web app starting operation and mirror image file generating method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101561859A (en) * 2008-04-16 2009-10-21 杨奎 Method and system for online issue and use of software
US20120297291A1 (en) * 2009-08-03 2012-11-22 Limelight Networks, Inc. Acceleration and optimization of web pages access by changing the order of resource loading
CN102289380A (en) * 2010-06-21 2011-12-21 上海中标软件有限公司 firefox starting acceleration method
CN105446750A (en) * 2014-05-30 2016-03-30 阿里巴巴集团控股有限公司 Web app starting operation and mirror image file generating method and device
CN105160010A (en) * 2015-09-22 2015-12-16 北京金山安全软件有限公司 Method and device for starting browser through external link and terminal equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107154068A (en) * 2017-05-11 2017-09-12 腾讯科技(深圳)有限公司 A kind of animation producing method, device, client and computer-readable recording medium
CN107154068B (en) * 2017-05-11 2018-11-09 腾讯科技(深圳)有限公司 A kind of animation producing method, device, client and computer readable storage medium
CN108958824A (en) * 2017-05-18 2018-12-07 龙芯中科技术有限公司 Starting method, apparatus, electronic equipment and the storage medium of application program
CN109298901A (en) * 2018-08-29 2019-02-01 百度在线网络技术(北京)有限公司 Object processing method, device, equipment, storage medium and vehicle
CN109298901B (en) * 2018-08-29 2022-05-31 百度在线网络技术(北京)有限公司 Method, device and equipment for processing objects in unmanned vehicle, storage medium and vehicle

Also Published As

Publication number Publication date
CN106649595B (en) 2020-10-27

Similar Documents

Publication Publication Date Title
CN105278937B (en) A kind of method and device showing pop-up box message
CN104978115A (en) Content display method and device
CN106406892A (en) A shortcut function display method and device for applications and a terminal apparatus
CN105630298A (en) Folder management method and equipment
CN104850406B (en) A kind of method and apparatus for switching the page
CN104102500B (en) The process initiation method and computer system of a kind of application program
CN103530115B (en) Application program display method and device and terminal equipment
CN103455603A (en) Method and device for caching webpage content and loading webpage and terminal device
CN104571787A (en) Message display method and communication terminal
CN103179026B (en) Communication means in user interactive system, system and server and client side
CN104077184B (en) A kind of course control method and computer system of application program
CN104301315A (en) Method and device for limiting information access
CN104407804A (en) Screen capturing method and screen capturing device as well as electronic device
CN104238893A (en) Video preview image displaying method and device
CN103631625B (en) A kind of method of data acquisition, user terminal, server and system
CN104423996A (en) View refreshing method and view refreshing device
CN105094501A (en) Display method, device and system for messages in mobile terminal
CN104951215A (en) Processing method and device for page operation
CN108932094A (en) Split screen application switching method, device, storage medium and electronic equipment
CN103197944B (en) Method for determining performance of process of application program and computer system
CN106649595A (en) Method, device and terminal for accelerating starting of web page based on object pool
CN104239369A (en) Method, device and system for filtering out webpage advertisements
CN105095259A (en) Waterfall flow object display method and device
CN104238931A (en) Information input method, information input device and electronic equipment
CN105787982A (en) Method and device for manufacturing e-book

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
GR01 Patent grant
GR01 Patent grant