summaryrefslogtreecommitdiff
path: root/src/treebuilder/element-type.h
Commit message (Collapse)AuthorAgeFilesLines
* treebuilder: Fix debug build variant with new element_type_to_name().Michael Drake2021-05-271-0/+8
| | | | This uses the gperf-generated wordlist.
* treebuilder: Return to running gperf at build time.Michael Drake2021-05-271-20/+2
| | | | Now we include the generated C file directly, in a new C file.
* Treebuilder: Allow element_type_from_name to be inlined.Michael Drake2021-05-151-0/+26
| | | | | | | | Now it is mostly a wrapper for the gperf-generated hubbub_element_type_lookup. This reduces total instruction fetch cost from 4,523,112,517 to 4,511,919,445.
* Treebuilder: Massively optimise element type from name with gperf.Michael Drake2021-05-151-0/+49
Loading the html5 single page spec: * We were spending 10.81% of total runtime in element_type_from_name. Now it takes 0.66% of total runtime. * Total instruction fetch cost is reduced from 5,660,475,511 to 4,523,112,517.