René Kijewski

Results 130 comments of René Kijewski

> Is it worth us benchmarking both methods so that we have some empirical evidence to inform the direction we choose? Old values use nonmax, new values use U31: ```text...

> How have you tested this? Whether the optimization works at all you mean? https://github.com/chronotope/chrono/pull/811/commits/fb79395dfbba15f1d51bb47b4934fab5f9613643 > Do you have an actual use case where this optimization has a substantial impact?...

Maybe this https://twitter.com/sourcegraph/status/1547991489149423620 can come in handy? > Starting today, Sourcegraph can search and navigate through 87k+ Rust Crates and all their versions. > > For example, see all the...

I found nothing outside of core-foundation itself: . Maybe @ratake can tell for what they use(d) the feature?

Can you please comment if this addition is wanted at all? The prime usecase is serde, which would allow deserialization without copying or allocations is some cases.

I tried to replicate the methods and implemented traits of `Cow`, as not to make using `CompactString` more difficult. I guess `CompactString` has much more use cases than `CompactCow`. 2....

I haven't looked at beef. I made CompactCow so that it has the same representation as CompactString. It uses `253` as its last byte to tell if the string is...

Sorry, it's too complicated to make the module and all dependencies work with no-std.

Cargo actually provides a per-crate temporary directory for such a use-case. You can have a look how I use caching in Nate: [build.rs](https://github.com/Kijewski/nate/blob/ae04d2c48ec1d8d47a0c7e172542b1a4ad246700/nate-derive/build.rs), [generate.rs](https://github.com/Kijewski/nate/blob/ae04d2c48ec1d8d47a0c7e172542b1a4ad246700/nate-derive/src/generate.rs#L95-L99). (Actually I use it because then...