flexstr
A flexible, simple to use, immutable, clone-efficient String replacement for Rust (by nu11ptr)
string-cache
String interning for Rust (by servo)
flexstr | string-cache | |
---|---|---|
8 | 2 | |
147 | 194 | |
- | 0.0% | |
0.0 | 4.7 | |
4 months ago | 3 months ago | |
Rust | Rust | |
Apache License 2.0 | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
flexstr
Posts with mentions or reviews of flexstr.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-11-17.
-
Consuming Vec<T> during pattern matching, where T is not Copy, but Clone
https://crates.io/crates/flexstr
-
Is Rust Stack-Efficient Yet?
Not sure I follow the question exactly and tbh it was like a year ago and I forget the specifics. You are welcome to look at the code, however:
https://github.com/nu11ptr/flexstr/blob/master/flexstr/src/b...
-
Should Rust have something like go generate?
templates: https://github.com/nu11ptr/flexstr/tree/str_generics/generate
-
FlexGen: Generate beautiful looking Rust source code
BStr Example CStr Example OsStr Example
-
FlexStr 0.9.0 Released
Github | Crates.io | Docs.rs
-
FlexStr - 0.8 Released
[Github](https://github.com/nu11ptr/flexstr) | [Crates.io](https://crates.io/crates/flexstr) | [Docs.rs](https://docs.rs/flexstr/latest/flexstr/) | [Benchmarks](https://github.com/nu11ptr/flexstr/blob/master/benchmarks/README.md)
- FlexStr – A flexible, simple to use, immutable, clone-efficient String replacement for Rust. It unifies literals, inlined, and heap allocated strings into a single type.
- Show HN: FlexStr – An immutable, clone-efficient String replacement for Rust
string-cache
Posts with mentions or reviews of string-cache.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-03-05.
-
FlexStr – A flexible, simple to use, immutable, clone-efficient String replacement for Rust. It unifies literals, inlined, and heap allocated strings into a single type.
Servo and html5ever use https://github.com/servo/string-cache for things like DOM element names. Values in a statically-known set are stored as an index, short (up to 7 bytes) values are stored inline, and the rest are heap-allocated, atomically-reference-counted, and de-duplicated (interned) in a global hash map so that PartialEq is a simple 64-bit comparison
-
Optimizing Hashmaps Even More
https://github.com/servo/string-cache/ is a string interning library where an atom (interned string) is represented as a single u64 which is either:
What are some alternatives?
When comparing flexstr and string-cache you can also consider the following projects:
opentelemetry-rust - The Rust OpenTelemetry implementation
rust-phf - Compile time static maps for Rust
readable - Human readable strings
rust - Empowering everyone to build reliable and efficient software.
copyless - [deprecated] Avoid memcpy calls when working with standard containers
miri - An interpreter for Rust's mid-level intermediate representation
sqlc - Generate type-safe code from SQL
compiler-explorer - Run compilers interactively from your web browser and interact with the assembly
rfcs - RFCs for changes to Rust
trc - A faster Arc.