基于WebKit內(nèi)核手機瀏覽器的研究與優(yōu)化
本文選題:WebKit + 瀏覽器內(nèi)核 ; 參考:《南京郵電大學》2015年碩士論文
【摘要】:隨著4G網(wǎng)絡的布局逐漸完善,手機上網(wǎng)變得日益方便。作為互聯(lián)網(wǎng)的主要入口,人們從手機瀏覽器獲取互聯(lián)網(wǎng)資訊成為不可或缺的一部分。移動互聯(lián)網(wǎng)的快速發(fā)展給手機瀏覽器帶來了機遇同時也帶來了挑戰(zhàn)。一方面,4G網(wǎng)絡的布局趨于完善使用戶通過手機連接到互聯(lián)網(wǎng)的時候能后夠獲得更快的上網(wǎng)體驗,這樣也可以加快智能手機的發(fā)展。另一方面,瀏覽器響應速度的快慢直接決定了其能否被用戶接受。本文的瀏覽器是基于Android平臺開發(fā)的,該課題來源于國內(nèi)某軟件公司。本文首先介紹了手機瀏覽器的現(xiàn)狀以及特點,并和PC端瀏覽器做了比較,闡明了手機瀏覽器的優(yōu)點和缺點。接著從瀏覽器內(nèi)核著手,介紹了當前幾款主流的渲染引擎,闡明了選擇WebKit的原因。在第三章重點分析了WebKit的整體架構(gòu)及其加載網(wǎng)頁的流程,并著重分析了Loader、DOM和Render模塊。在第四章,首先分析了Loader模塊在加載主資源的時候存在的問題,在不改變整體架構(gòu)的情況下,修改部分代碼,在第二次加載相同網(wǎng)頁的時候,提升了加載的速度。接著,分析了Render模塊,介紹了Render樹結(jié)構(gòu)中需要緩存的信息,優(yōu)化當前需要緩存的Render樹并對其進行緩存。最后通過測試驗證改進后的方案,從測試數(shù)據(jù)中可以看出瀏覽器的性能有了很大的提升。最終對本文進行了總結(jié),并對后續(xù)工作進行了展望,還有許多模塊可以繼續(xù)優(yōu)化。
[Abstract]:With the gradual improvement of 4G network layout, mobile phone Internet access has become increasingly convenient. As the main entry point of the Internet, it is indispensable for people to obtain Internet information from mobile browsers. The rapid development of mobile Internet brings both opportunities and challenges to mobile browsers. On the one hand, the layout of 4G network tends to be perfect so that users can get a faster Internet experience after connecting to the Internet through their mobile phones, which can also speed up the development of smartphones. On the other hand, the speed of browser response directly determines whether it can be accepted by users. The browser of this paper is based on Android platform, this subject comes from a domestic software company. This paper first introduces the present situation and characteristics of mobile browser, compares it with PC browser, and clarifies the advantages and disadvantages of mobile browser. Then from the browser kernel, introduced the current several mainstream rendering engine, explained the reason for choosing WebKit. In the third chapter, the whole architecture of WebKit and the process of loading web pages are analyzed, and the Dom and Render modules of Loader are also analyzed. In the fourth chapter, we analyze the problems of the Loader module when loading the main resource, modify some code without changing the whole architecture, and improve the loading speed when loading the same web page for the second time. Then, the Render module is analyzed, the information needed to be cached in the Render tree structure is introduced, and the Render tree that needs cache is optimized and cached. Finally, the improved scheme is verified by test, and it can be seen from the test data that the performance of the browser has been greatly improved. Finally, this paper is summarized, and the future work is prospected. There are still many modules to be optimized.
【學位授予單位】:南京郵電大學
【學位級別】:碩士
【學位授予年份】:2015
【分類號】:TP393.092
【相似文獻】
相關期刊論文 前10條
1 技術宅;;瀏覽器內(nèi)核揭秘[J];電腦愛好者;2013年09期
2 飛飛;;心與心的交流 認識瀏覽器內(nèi)核[J];電腦愛好者;2006年10期
3 馬婧;;從“殼”瀏覽器邁向“核”瀏覽器[J];互聯(lián)網(wǎng)周刊;2013年21期
4 ;細數(shù)手機瀏覽器領域“核能力”[J];微電腦世界;2012年05期
5 何陡;;瀏覽器什么芯——主流瀏覽器渲染核心[J];互聯(lián)網(wǎng)天地;2010年02期
6 牛津;楊濤;王林;;網(wǎng)頁瀏覽器內(nèi)核的比較研究[J];微計算機應用;2009年03期
7 ;瀏覽器內(nèi)核之戰(zhàn):孤芳自賞的創(chuàng)新英雄Opera[J];電腦與電信;2013年Z1期
8 倪蘭;;手機QQ瀏覽器“云功能”持續(xù)豐富[J];通信世界;2011年44期
9 陳尚義;張輝;;面向HTML5的百度引擎[J];信息技術與標準化;2012年11期
10 ;用IE6.0馬甲暢游網(wǎng)絡[J];電腦迷;2007年06期
相關重要報紙文章 前10條
1 本報記者 邱燕娜;開放+自主內(nèi)核 UC優(yōu)視的創(chuàng)新之源[N];中國計算機報;2011年
2 付紅;移動互聯(lián)網(wǎng)瀏覽器開始“核變”[N];人民郵電;2011年
3 本報記者 王沛霖;UC俞永福詳解四大檢驗標準[N];中國計算機報;2012年
4 本報記者 李敬;“核”能力開啟手機“富瀏覽器”時代[N];計算機世界;2011年
5 本報記者 劉燕;手機瀏覽器行業(yè)關鍵詞[N];科技日報;2013年
6 本報記者 田夢;Opera為用戶提供整合上網(wǎng)體驗[N];計算機世界;2008年
7 本報記者 方微;UC推自主瀏覽器內(nèi)核完善功能提升用戶體驗[N];通信信息報;2011年
8 記者 王志新;瀏覽器酣戰(zhàn)硝煙又起[N];中華工商時報;2012年
9 曉麗;搜狗推首款“真雙核”引擎瀏覽器[N];國際商報;2010年
10 本報記者 王哲瑋;三缺一Web變局前夜[N];計算機世界;2013年
相關碩士學位論文 前2條
1 禹智;基于WebKit內(nèi)核手機瀏覽器的研究與優(yōu)化[D];南京郵電大學;2015年
2 杜偉南;基于WebKit的手機瀏覽器的內(nèi)核研究與資源加載優(yōu)化[D];中南大學;2013年
,本文編號:1825527
本文鏈接:http://sikaile.net/guanlilunwen/ydhl/1825527.html