arcstr icon indicating copy to clipboard operation
arcstr copied to clipboard

Better reference counted strings for Rust

Results 17 arcstr issues
Sort by recently updated
recently updated
newest added

Unsure why CI is failing on 1.43. Cargo is failing with `error reading from the zlib stream; class=Zlib (5)`: ``` cargo test --no-default-features --verbose shell: /usr/bin/bash -e {0} env: RUST_BACKTRACE:...

It would be very helpful if a method to construct an `ArcStr` in-place can be provided, instead of forcing a wasteful copy from String. This is especially useful if we...

That is: a thread-unsafe (e.g. `!Send`) equivalent to `ArcStr`. `std::rc::Rc` would be to `RcStr` as `std::sync::Arc` is to `ArcStr`). It would avoid needing to use atomic operations, but otherwise would...

We could define a custom trait (see how hashbrown does this) to support it prior to the unstable trait landing. This would (at the very least) allow testing allocation fallibility[^1],...

blocked

I would like to update an `ArcStr` atomically. Is it possible to implement some wrapper like [`arc_swap`](https://docs.rs/arc-swap/) for arcstr, or must that introduce significant overhead?

From Readme: Essentially this will be an 8-byte wrapper around `ArcStr` that allows storing small 7b-or-fewer strings inline, without allocation. It will be 8 bytes on 32-bit and 64-bit platforms...

CC: https://github.com/rust-lang/rust/issues/111839

This PR adds optional support for serialization of ArcStr with bincode (similar to how it already exists for serde). This avoids external projects which use arcstr and bincode having to...

blocked

From the Docs: * ArcStr is totally immutable. No need to lose sleep because you’re afraid of code which thinks it has a right to mutate your Arcs just because...