fhp-tree 0.1.0

Cache-optimized arena-based DOM tree for the HTML parser
Documentation

Arena-based DOM tree with cache-line aligned nodes.

This crate builds on fhp-tokenizer to construct an in-memory DOM tree using an arena allocator. Each node occupies exactly 64 bytes (one cache line) for optimal traversal performance.

Quick Start

use fhp_tree::parse;

let doc = parse("<div><p>Hello</p></div>").unwrap();
let root = doc.root();
assert!(root.children().count() > 0);