y21 / tl

Fast, zero-copy HTML Parser written in Rust
https://docs.rs/tl
MIT License
336 stars 19 forks source link

Replace InlineVec with SmallVec #43

Open y21 opened 2 years ago

y21 commented 2 years ago

Currently tl implements its own "smallvec" kind of type that can store up to N elements on the stack and move it to the heap if the max stack capacity is reached. It used to be slightly different and have some specialized methods when this crate looked a lot different, but now I think SmallVec is pretty much a drop in replacement for this InlineVec type