Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upHow does this compare to `arrayvec`'s `ArrayString`? #1
Comments
This comment has been minimized.
This comment has been minimized.
|
Our API is more extensible, it allows for unchecked write, truncating write, it never panicks in release builds. There is no_std, serde and diesel integration where arrayvec has no_std and serde erroring (we truncate if the string is bigger, but this is debatable - we could make a Truncate newtype that truncates by default while the regular integration returns a error, or something like that). Our approach to generics is a bit different, and we support any size from 1 byte to 255 bytes. I've also benchmarked and this is the comparison (check the benches folder to analyze the micro benchmark). It's basically the same, but our implementation seems a bit faster (but it could be noise).
|
ErichDonGubler commentedJan 21, 2019
No description provided.