$ cargo build
... 37 dependencies
Finished dev [unoptimized + debuginfo] target(s) in 18.39s
After:
$ cargo build
... 27 dependencies
Finished dev [unoptimized + debuginfo] target(s) in 14.59s
That's 26% faster in this very rough test. But the 10 fewer dependencies make this seem plausible. There are still some proc-macro dependencies like syn left, but they have nothing to do with self_cell as it has 0 dependencies and doesn't use proc-macros.
Disclaimer I'm the author of self_cell.
I ran cargo test and all non skipped tests passed before and after.
iai_resolve_preferences
Instructions: 1875919 (No change)
L1 Accesses: 2669397 (No change)
L2 Accesses: 9929 (No change)
RAM Accesses: 6519 (No change)
Estimated Cycles: 2947207 (No change)
Before (fluent-bundle):
$ cargo build ... 37 dependencies Finished dev [unoptimized + debuginfo] target(s) in 18.39s
After:
$ cargo build ... 27 dependencies Finished dev [unoptimized + debuginfo] target(s) in 14.59s
That's 26% faster in this very rough test. But the 10 fewer dependencies make this seem plausible. There are still some proc-macro dependencies like syn left, but they have nothing to do with
self_cell
as it has 0 dependencies and doesn't use proc-macros.Disclaimer I'm the author of
self_cell
.I ran
cargo test
and all non skipped tests passed before and after.This is a continuation of https://github.com/projectfluent/fluent-rs/pull/221 which seems to have become stale.
I also ran the iai benchmarks:
Before:
After:
And it's slightly faster than ouroboros.