Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Off main thread HTML parsing project

Josh Matthews edited this pageMar 13, 2017 ·3 revisions

Contact:Anthony Ramine

The HTML parser currently in use in Servo is synchronous. This means that parsing HTML content and evaluating JavaScript are often entangled, which prevents optimizations such as speculatively continuing to parse HTML content at the same time. The goal of this project is to make it possible to run the HTML parser in a separate thread and process the results in the original thread at a later time.

Project breakdown

  • Make Servo's parser create a stream of events instead of executing actions immediately (seeexperiment)
  • Provide synchronous or asynchronous interface to parser
  • Implement checkpoints in the parser that allow re-parsing from a previous location and state
  • Support speculatively continuing to parse input while the parser is blocked waiting
  • Preload images encountered during speculative parsing

Reference:

Current implementation:

Suggestions for preparation

(Feel free to ask questions in #servo onirc.mozilla.org, or ourmailing list!)

  • Addprintln!() calls to the HTML parser actions to understand how they interact with parsing an HTML document
  • File issues aboutinadequate documentation related to the HTML parser if anything is unclear
  • Gain experience using Rust bysolving an easy issue. Please leave a comment saying that you're working on it.

Clone this wiki locally


[8]ページ先頭

©2009-2025 Movatter.jp