untitaker / html5gum

A WHATWG-compliant HTML5 tokenizer and tag soup parser
MIT License
148 stars 11 forks source link

allow user to define buffer of IoReader #67

Closed untitaker closed 1 year ago

untitaker commented 1 year ago

html5gum's priorities are with programs that need to parse many independent html documents per second (i.e. hyperlink)

for that purpose it makes sense to be able to reuse buffers, even though in the case of hyperlink it doesn't bring any performance improvement

The temporary_buffer in machine_helper should probably also be reevaluated at some point.