计算机应用 ›› 2011, Vol. 31 ›› Issue (12): 3331-3333.

• 先进计算 • 上一篇    下一篇

嵌入式浏览器解析排版并行化研究与设计

杨留慧,雷航,郭文生   

  1. 电子科技大学 计算机科学与工程学院, 成都 611731
  • 收稿日期:2011-05-06 修回日期:2011-07-02 发布日期:2011-12-12 出版日期:2011-12-01
  • 通讯作者: 杨留慧
  • 基金资助:
    国家核高基重大专项

Research and Design of Parallel Parsing and Layouting Method for Embedded Browser

YANG Liu-hui,LEI Hang,GUO Wen-sheng   

  1. School of Computer Science and Engineering, University of Electronic Science and Technology of China, Chengdu Sichuan 611731, China
  • Received:2011-05-06 Revised:2011-07-02 Online:2011-12-12 Published:2011-12-01
  • Contact: YANG Liu-hui

摘要: 提出一种嵌入式浏览器网页解析与排版的并行化处理方法。通过将嵌入式浏览器控制和排版划分为主线程,资源加载和解析划分为从线程,将串行的网页解析和排版过程并行化,并根据浏览器消息类型进行调度管理。结合操作系统的线程调度模式,该方法克服了单页面解析、排版的单线程响应效率差而造成用户体验较差的问题。经实例测试,验证了该方法的可行性,并且在内存消耗不超过64MB的情况下,首屏显示速度提高了4%~17%。

关键词: 嵌入式浏览器, 并行化, 加载, 解析, 排版, 多线程

Abstract: A parallel parsing and layout method for embedded browser was introduced in this paper. By putting the controlling and layout into the master thread, loading resources and parsing into the slave thread, this method paralleled the serial parsing and layout process for Web pages. To solve the problem of the browser’s slow response to users, the message scheduling method for the browser combined with thread scheduling model in Operating System (OS) was also designed. The feasibility of the method is verified and the speed of rendering the first screen to users is improved by 4%-17% costing less than 64MB memory according to the testing cases.

Key words: embedded browser, parallel method, loading, parsing, layouting, multi-threading

中图分类号: