CN104077151B - The method and electronic equipment of fast start network application - Google Patents
The method and electronic equipment of fast start network application Download PDFInfo
- Publication number
- CN104077151B CN104077151B CN201310100515.4A CN201310100515A CN104077151B CN 104077151 B CN104077151 B CN 104077151B CN 201310100515 A CN201310100515 A CN 201310100515A CN 104077151 B CN104077151 B CN 104077151B
- Authority
- CN
- China
- Prior art keywords
- network application
- sub
- line journey
- thread
- electronic equipment
- 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.)
- Active
Links
Landscapes
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Provide a kind of method and electronic equipment of fast start network application.The method of fast start network application is applied in electronic equipment, and methods described includes:When the electronic equipment starts, the empty network application thread of automatic start;Receive the operation input for starting particular network application;Inputted in response to the operation, at least one new network application sub-line journey is generated in the empty network application thread by the first operation;The content of the particular network application is loaded by the new network application sub-line journey, wherein, the multiple application sub-line journey forms a network application process;And render and run the particular network application.
Description
Technical field
The present invention relates to the field of electronic equipment, more particularly it relates to a kind of side of fast start network application
Method and electronic equipment.
Background technology
With the development of network technology, various network applications turn into the focus of user's concern.But the startup of network application
Speed is endured to the fullest extent always to denounce.For example, the network application of target clicks on the icon of network application to the content of network application from user
Display is completed, and starts the time often beyond 3 seconds so that Consumer's Experience is poor, and sensory system performance is too poor.
For this reason, it may be desirable to provide a kind of method and electronic equipment of fast start network application, it being capable of fast start network
Using so as to improve user experience.
The content of the invention
According to one embodiment of the invention, there is provided a kind of method of fast start network application, applied to electronic equipment
In, methods described includes:
When the electronic equipment starts, the empty network application thread of automatic start;
Receive the operation input for starting particular network application;
Input, generated by the first operation in the empty network application thread at least one new in response to the operation
Network application sub-line journey;
The content of the particular network application is loaded by the new network application sub-line journey, wherein, it is the multiple to answer
A network application process is formed with sub-line journey;And
Render and run the particular network application.
Preferably, starting the network application thread of sky includes:
Start counterfoil application;And
Load and initialize network video picture library, the network video picture library is used to render and the content of network application is presented.
Preferably, a new network application sub-line journey is generated in the empty network application thread by the first operation
Including:
By calling fork functions, a new network application sub-line journey is replicated in the empty network application thread,
The new network application sub-line journey has whole resources of the empty network application thread.
Preferably, the content for loading the particular network application by the new network application sub-line journey includes:
The code of the particular network application is loaded in the new network application sub-line journey;And/or
The page of the particular network application is loaded in the new network application sub-line journey.
Preferably, rendering and running the particular network application includes:
According to the code of the particular network application, render and run network application corresponding with the code;And/or
According to the page of the particular network application, render and run network application corresponding with the page.
According to another embodiment of the present invention, there is provided a kind of electronic equipment, including:
Thread start unit, for when the electronic equipment starts, the empty network application thread of automatic start;
Operation input unit, start the operation input of particular network application for receiving;
Sub-line journey generation unit, for being inputted in response to the operation, by the first operation in the empty network application line
At least one new network application sub-line journey is generated in journey;
Content loading unit, for being loaded by the new network application sub-line journey in the particular network application
Hold, wherein, the multiple application sub-line journey forms a network application process;And
Running unit, for rendering and running the particular network application.
Preferably, the thread start unit is further used for:
Start counterfoil application;And
Load and initialize network video picture library, the network video picture library is used to render and the content of network application is presented.
Preferably, the sub-line journey generation unit is multiple in the empty network application thread by calling fork functions
A new network application sub-line journey is made, the new network application sub-line journey has the whole of the empty network application thread
Resource.
Preferably, the content loading unit loads the particular network application in the new network application sub-line journey
Code;And/or the page of the particular network application is loaded in the new network application sub-line journey.
Preferably, the running unit is rendered and run and the code pair according to the code of the particular network application
The network application answered;And/or the page according to the particular network application, rendering and run network corresponding with the page should
With.
Therefore, the method and electronic equipment of fast start network according to embodiments of the present invention application, it can quickly be opened
Dynamic network application, so as to improve user experience.
Brief description of the drawings
Fig. 1 is the flow chart for the network application start-up course for illustrating prior art;
Fig. 2 is to illustrate the flow chart using startup method according to a first embodiment of the present invention;
Fig. 3 is the flow chart for illustrating network application start-up course according to a first embodiment of the present invention;
Fig. 4 is to illustrate the flow chart using startup method according to a first embodiment of the present invention;And
Fig. 5 is the functional block diagram for illustrating electronic equipment according to a second embodiment of the present invention.
Embodiment
Hereinafter, by preferred embodiments of the present invention will be described in detail with reference to the annexed drawings.
Before the preferred embodiments of the present invention are described, the network application start-up course of prior art is first briefly described.
With support of the operating systems such as iOS, Android to HTML5, by counterfoil program load HTML5, CSS5,
The network application of Javascript exploitations(Web App)As feasible, but Web App toggle speed is endured to the fullest extent denounce always.
As shown in figure 1, existing WebApp start-up course 100 includes following steps:
Step S101:User clicks on WebApp icon.
Step S102:Start counterfoil application.
Step S103:Load networks view(WebView)Storehouse.
Step S104:Load the WebApp page.
Step S105:Start to render and start WebApp.
That is, it is necessary to should by starting counterfoil after user starts to click on the icon for the WebApp for it is expected operation
With loading WebView storehouse, load the WebApp page, and start to render and start WebApp four-stages.Assuming that from step
It is t1 the time required to rapid S101 to step S103, from step S104 to step S105, required time is t2, then is clicked on from user
WebApp icon to WebApp content, which are shown, to be completed, and the required startup time is t1+t2, and the time, t1+t2 was often beyond 3
Second.Therefore, even if the hardware configuration of electronic equipment is very high, also make it that user's sensory system performance is too poor, so as to cause user's body
Test poor.
<First embodiment>
The method of fast start network application according to a first embodiment of the present invention considers problem above and made.Namely
Say, to optimize WebApp toggle speed, it is necessary first to consider optimization WebApp Booting sequence.
During starting different WebApp in an operating system, " starting counterfoil application " and " loading, initialization
The two processes of WebView storehouse " are just as.On the other hand, " loading WebApp the page " and " start to render and start
WebApp " process is then according to the different and different of WebApp.Accordingly, it is considered to case above is fast to improve WebApp startup
Degree.
The method of fast start network application according to a first embodiment of the present invention is applied in electronic equipment, and the electronics is set
Standby can be any electronic equipment, as long as the electronic equipment can run WebApp.The example bag of such electronic equipment
Include desktop computer, tablet personal computer, smart mobile phone, intelligent television etc..
The method 200 of fast start network application includes:
Step S201:When the electronic equipment starts, the empty network application thread of automatic start;
Step S202:Receive the operation input for starting particular network application;
Step S203:Inputted in response to the operation, by the first operation generate in the empty network application thread to
A few new network application sub-line journey;
Step S204:The content of the particular network application is loaded by the new network application sub-line journey, wherein, institute
State multiple application sub-line journeys and form a network application process;And
Step S205:Render and run the particular network application.
Specifically, in step s 201, when electronic equipment starts, after os starting, operating system is automatic
Start an empty network application thread(That is, an empty WebApp is started).
Starting empty WebApp process includes:Start counterfoil application and load and initialize network view
(WebView)Storehouse, the network video picture library are used to render and the content of network application is presented.
In addition, after loading WebView storehouses, Javascript storehouses can also be loaded, for running java applet.
In step S202, the operation input for starting particular network application is received.For example, user can be detected for specific
The clicking operation of WebApp icon inputs as operation.Or user can be detected and disappeared for webpage, mail, instant messaging
The clicking operation of link in breath is inputted as operation, and specific WebApp is pointed in the link.
In step S203, inputted in response to the operation, the life in the empty network application thread by the first operation
Into at least one new network application sub-line journey.That is, when detecting that user starts particular Web App operation input,
At least one new WebApp sub-lines are generated in the empty WebApp threads generated in step s 201 by the first operation
Journey.
Specifically, by calling fork functions, replicating a new network in the empty network application thread should
With sub-line journey, the new network application sub-line journey has whole resources of the empty network application thread.
That is, fork()Function is called by system, creates one and the substantially identical thread of original thread,
The thread has and original thread identical code, data and the resource for distributing to thread(For example, the sky of data storage and code
Between).
Then, in step S204, loaded by the new network application sub-line journey in the particular network application
Hold.That is, by using fork()The thread of function creation, loading user select the content of the network application started(Such as
WebApp codes, page etc.).
Specifically, the content for loading the particular network application by the new network application sub-line journey includes:
The code of the particular network application is loaded in the new network application sub-line journey;And/or in new network application
The page of the particular network application is loaded in thread.
It should be noted that the institute including above-mentioned empty network application sub-line journey, the new network application sub-line journey replicated
State multiple application sub-line journeys and form a network application process.One thread is can to complete a complete application, so as to not only
Under LUNIX system situation, and under Windows system situation, aforesaid operations can also be carried out.
Then, in step S205, render and run WebApp codes, user selects what is started so as to bring into operation
WebApp。
Specifically, rendering and running the particular network application includes:According to the code of the particular network application, wash with watercolours
Contaminate and run network application corresponding with the code;And/or the page according to the particular network application, render and run with
Network application corresponding to the page.
Understand as described above, " starting counterfoil application " and " loading, initialization WebView storehouse " the two processes
Startup for all WebApp is all identical, required time t1.Load the WebApp page and start to render and open
It is t2 the time required to dynamic WebApp.
Therefore, when using the method for fast start network application according to a first embodiment of the present invention, as shown in figure 3,
When user selects to start WebApp, WebApp start-up course includes:Fork goes out a sub-line in the WebApp threads of sky
Journey, loads the WebApp page, and starts to render and start WebApp.Now, it is in sky the time required to starting WebApp
The time t1 ' that fork goes out needed for a sub-line journey in WebApp threads adds the loading WebApp page and starts to render and start
T2 the time required to WebApp.However, in the WebApp threads of sky fork go out time t1 ' needed for a sub-line journey almost can be with
Ignore, so method according to a first embodiment of the present invention, t2 is substantially equal to the time required to starting WebApp.
As can be seen here, compared with the WebApp of prior art startup method, it is possible to reduce " starting counterfoil application " and " add
Time t1 needed for the storehouse of load, initialization WebView ", so as to which user feels that WebApp toggle speed is greatly speeded up.
Therefore, the method for fast start network application according to embodiments of the present invention, can fast start network application, from
And improve user experience.
<Second embodiment>
Below, the method 300 that fast start network according to a second embodiment of the present invention applies is described with reference to figure 4.This is fast
The method 300 that speed starts network application includes:
Step S301:When the electronic equipment starts, the empty network application process of automatic start;
Step S302:Receive the operation input for starting particular network application;
Step S303:Inputted in response to the operation, by the first operation generate in the empty network application process to
A few new network application subprocess;
Step S304:The content of the particular network application is loaded by the new network application subprocess;And
Step S305:Render and run the particular network application.
According to a second embodiment of the present invention fast start network application method 300 with according to a first embodiment of the present invention
The difference of method 200 of fast start network application be:In method 200, after electronic equipment startup, automatic start
Empty network application thread, and in method 300, after electronic equipment startup, the empty network application process of automatic start.So
Afterwards, in method 300, fork is passed through()Function generates at least one new network application in the network application process of sky and entered
Journey, and by the content of the new network application subprocess loading particular network application, to render and run the spy
Determine network application.
It is identical with first embodiment, it is that fork goes out one in the WebApp processes of sky the time required to now starting WebApp
Time t1 ' ' needed for subprocess adds the loading WebApp page and starts to render and start t2 the time required to WebApp.So
And the time t1 ' ' that fork goes out needed for a subprocess in the WebApp processes of sky can almost ignore, so according to this hair
The method of bright first embodiment, t2 is substantially equal to the time required to starting WebApp.
According to a second embodiment of the present invention fast start network application method 300 other operations with according to the present invention
The method 200 of first embodiment is similar.
Specifically, by calling fork functions, replicating a new network in the empty network application process should
With subprocess, the new network application subprocess has whole resources of the empty network application process.
That is, fork()Function is called by system, creates one and the substantially identical process of original process,
The process has and original process identical code, data and the resource for distributing to process(For example, the sky of data storage and code
Between).
Then, in step s 304, loaded by the new network application subprocess in the particular network application
Hold.That is, by using fork()The process of function creation, loading user select the content of the network application started(Such as
WebApp codes, page etc.).
Specifically, the content for loading the particular network application by the new network application subprocess includes:
The code of the particular network application is loaded in the new network application subprocess;And/or in new network application
The page of the particular network application is loaded in process.
As can be seen here, compared with the WebApp of prior art startup method, it is possible to reduce " starting counterfoil application " and " add
Time t1 needed for the storehouse of load, initialization WebView ", so as to which user feels that WebApp toggle speed is greatly speeded up.
Therefore, the method for fast start network application according to embodiments of the present invention, can fast start network application, from
And improve user experience.
<3rd embodiment>
Below, electronic equipment 400 according to a third embodiment of the present invention is described with reference to figure 5.
Electronic equipment 400 according to a second embodiment of the present invention includes:
Thread start unit 401, for when the electronic equipment starts, the empty network application thread of automatic start;
Operation input unit 402, start the operation input of particular network application for receiving;
Sub-line journey generation unit 403, for being inputted in response to the operation, by the first operation in the empty network application
At least one new network application sub-line journey is generated in thread;
Content loading unit 404, for loading the particular network application by the new network application sub-line journey
Content, wherein, the multiple application sub-line journey forms a network application process;And
Running unit 405, for rendering and running the particular network application.
The thread start unit 401 is further used for:
Start counterfoil application;And
Load and initialize network video picture library, the network video picture library is used to render and the content of network application is presented.
The sub-line journey generation unit 403 replicates one by calling fork functions in the empty network application thread
Individual new network application sub-line journey, the new network application sub-line journey have whole moneys of the empty network application thread
Source.
The content loading unit 404 loads the generation of the particular network application in the new network application sub-line journey
Code;And/or the page of the particular network application is loaded in the new network application sub-line journey.
The running unit 405 is rendered and run corresponding with the code according to the code of the particular network application
Network application;And/or the page according to the particular network application, render and run network application corresponding with the page.
Therefore, electronic equipment according to embodiments of the present invention, can fast start network application, so as to improve user use
Experience.
It should be noted that above embodiment is intended merely as example, the invention is not restricted to such example, but can
To carry out various change.
It should be noted that in this manual, term " comprising ", "comprising" or its any other variant are intended to
Nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those
Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Other identical element also be present in process, method, article or equipment including the key element.
Finally, it is to be noted that, a series of above-mentioned processing are not only included with order described here in temporal sequence
The processing of execution, and the processing including performing parallel or respectively rather than in chronological order.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by
Software adds the mode of required hardware platform to realize, naturally it is also possible to is all implemented by hardware.Based on such understanding,
What technical scheme contributed to background technology can be embodied in the form of software product in whole or in part,
The computer software product can be stored in storage medium, such as ROM(Read-only storage)/RAM(Random access memory), magnetic
Dish, CD etc., including some instructions are causing a computer equipment(Can be personal computer, server, or network
Equipment etc.)Perform the method described in some parts of each embodiment of the present invention or embodiment.
The present invention is described in detail above, principle and embodiment party of the specific case used herein to the present invention
Formula is set forth, and the explanation of above example is only intended to help the method and its core concept for understanding the present invention;It is meanwhile right
In those of ordinary skill in the art, according to the thought of the present invention, change is had in specific embodiments and applications
Part, in summary, this specification content should not be construed as limiting the invention.
Claims (8)
1. a kind of method of fast start network application, applied in electronic equipment, methods described includes:
When the electronic equipment starts, the empty network application thread of automatic start;
Receive the operation input for starting particular network application;
Inputted in response to the operation, at least one new network is generated in the empty network application thread by the first operation
Using sub-line journey;
The content of the particular network application is loaded by the new network application sub-line journey, wherein, multiple networks should
A network application process is formed with sub-line journey;And
Render and run the particular network application;
Wherein starting the network application thread of sky includes:
Start counterfoil application;And
Load and initialize network video picture library, the network video picture library is used to render and the content of network application is presented.
2. one is the method for claim 1, wherein generated in the empty network application thread by the first operation
New network application sub-line journey includes:
By calling fork functions, a new network application sub-line journey is replicated in the empty network application thread, it is described
New network application sub-line journey has whole resources of the empty network application thread.
3. the method for claim 1, wherein loading the particular network by the new network application sub-line journey should
Content includes:
The code of the particular network application is loaded in the new network application sub-line journey;And/or
The page of the particular network application is loaded in the new network application sub-line journey.
4. method as claimed in claim 3, wherein, rendering and running the particular network application includes:
According to the code of the particular network application, render and run network application corresponding with the code;And/or
According to the page of the particular network application, render and run network application corresponding with the page.
5. a kind of electronic equipment, including:
Thread start unit, for when the electronic equipment starts, the empty network application thread of automatic start;
Operation input unit, start the operation input of particular network application for receiving;
Sub-line journey generation unit, for being inputted in response to the operation, by the first operation in the empty network application thread
Generate at least one new network application sub-line journey;
Content loading unit, for loading the content of the particular network application by the new network application sub-line journey, its
In, multiple network application sub-line journeys form a network application process;And
Running unit, for rendering and running the particular network application;
Wherein described thread start unit is further used for:
Start counterfoil application;And
Load and initialize network video picture library, the network video picture library is used to render and the content of network application is presented.
6. electronic equipment as claimed in claim 5, wherein, the sub-line journey generation unit is by calling fork functions, in institute
State and a new network application sub-line journey is replicated in the network application thread of sky, the new network application sub-line journey has described
Whole resources of empty network application thread.
7. electronic equipment as claimed in claim 5, wherein, the content loading unit is in the new network application sub-line journey
The code of the middle loading particular network application;And/or load the particular network in the new network application sub-line journey
The page of application.
8. electronic equipment as claimed in claim 5, wherein, the running unit according to the code of the particular network application,
Render and run network application corresponding with the code;And/or the page according to the particular network application, render and run
Network application corresponding with the page.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310100515.4A CN104077151B (en) | 2013-03-26 | 2013-03-26 | The method and electronic equipment of fast start network application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310100515.4A CN104077151B (en) | 2013-03-26 | 2013-03-26 | The method and electronic equipment of fast start network application |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104077151A CN104077151A (en) | 2014-10-01 |
CN104077151B true CN104077151B (en) | 2017-11-24 |
Family
ID=51598422
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310100515.4A Active CN104077151B (en) | 2013-03-26 | 2013-03-26 | The method and electronic equipment of fast start network application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104077151B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106933865A (en) * | 2015-12-31 | 2017-07-07 | 北京五八信息技术有限公司 | The resource loading method and device of mobile applications web application |
CN106371907A (en) * | 2016-08-30 | 2017-02-01 | 乐视控股(北京)有限公司 | Method and device for executing task |
CN108121572B (en) * | 2016-11-28 | 2021-02-12 | 华为技术有限公司 | Web application starting method and device |
KR102340199B1 (en) * | 2017-06-14 | 2021-12-16 | 삼성전자주식회사 | Image display apparatus, and operating method for the same |
CN108062412B (en) * | 2017-12-30 | 2022-02-18 | 北京百度网讯科技有限公司 | Method and device for generating shortcut of webpage application program and terminal equipment |
CN109614563B (en) * | 2018-12-05 | 2021-06-08 | 北京达佳互联信息技术有限公司 | Method, device and equipment for displaying webpage and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101610316A (en) * | 2009-07-24 | 2009-12-23 | 中兴通讯股份有限公司 | The startup methods, devices and systems of application program of mobile phone |
CN101639787A (en) * | 2009-09-07 | 2010-02-03 | 中兴通讯股份有限公司 | Method and device for starting application program |
CN102843393A (en) * | 2011-06-22 | 2012-12-26 | 腾讯科技(深圳)有限公司 | Running device and method of network application |
CN102843394A (en) * | 2011-06-22 | 2012-12-26 | 腾讯科技(深圳)有限公司 | Frame device of network application and operation method |
-
2013
- 2013-03-26 CN CN201310100515.4A patent/CN104077151B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101610316A (en) * | 2009-07-24 | 2009-12-23 | 中兴通讯股份有限公司 | The startup methods, devices and systems of application program of mobile phone |
CN101639787A (en) * | 2009-09-07 | 2010-02-03 | 中兴通讯股份有限公司 | Method and device for starting application program |
CN102843393A (en) * | 2011-06-22 | 2012-12-26 | 腾讯科技(深圳)有限公司 | Running device and method of network application |
CN102843394A (en) * | 2011-06-22 | 2012-12-26 | 腾讯科技(深圳)有限公司 | Frame device of network application and operation method |
Also Published As
Publication number | Publication date |
---|---|
CN104077151A (en) | 2014-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104077151B (en) | The method and electronic equipment of fast start network application | |
US9990209B2 (en) | Digital assistance device for facilitating multi-stage setup | |
US10599252B2 (en) | Intelligent terminal control method utilizing touch contact location and pressure | |
TWI604368B (en) | Data processing method and device | |
CN107679214B (en) | Link positioning method, device, terminal and computer readable storage medium | |
US10423471B2 (en) | Virtualizing integrated calls to provide access to resources in a virtual namespace | |
US10540150B2 (en) | Composable context menus | |
US20150286342A1 (en) | System and method for displaying application data through tile objects | |
CN104657201A (en) | Method, device, equipment and system for pushing application program | |
US20180210891A1 (en) | Schematized Data Roaming | |
CN104462283A (en) | Method, device and client for requesting webpage elements in mobile terminal | |
US10541854B2 (en) | Component loading based on user interactions | |
CN105872767A (en) | Method and apparatus for guiding sharing based on user behaviors | |
US11301345B2 (en) | Desktop sound source discovery | |
CN104750553A (en) | Application operating method and device | |
CN110362305B (en) | Form component state switching method and device | |
CN112905072B (en) | Application processing method and device and electronic equipment | |
CN101826008A (en) | Scene subject changing method and computer system | |
WO2017004442A1 (en) | Systems and methods for transforming applications | |
US8695022B2 (en) | Context for replacement functions | |
CN113287092A (en) | System and method for adding digital content during application opening operation | |
CN113342413B (en) | Method, apparatus, device, medium, and article for processing components | |
CN110361986B (en) | Simulation file generation method and device and simulation system | |
US10637942B1 (en) | Providing most recent application views from user devices | |
US9871911B1 (en) | Visualizations for interactions with external computing logic |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |