Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement atoms for parsing HTML, comparing Attrs, etc #85
Comments
|
How about using trie like data structure? |
|
Is this the same as #282? |
|
Folding this into #1153.
I'm using rust-phf for various static string tables in the new HTML5 parser. |
glennw
added a commit
to glennw/servo
that referenced
this issue
Jan 16, 2017
Fix rotation of uv coordinates for box shadow pieces.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In places like the HTML parser (hubbub_html_parser.rs), many redundant
~strs are created simply for the purpose of matching tag names and attributes. This should instead be done with atoms.To implement atoms, we may need to port something like gperf (http://www.gnu.org/software/gperf/) to Rust, or have some other solution for fast string lookup.