Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): downgrade anyhow version to 1.0.76 #2877

Merged
merged 2 commits into from
Nov 10, 2024

Conversation

popcnt1
Copy link
Collaborator

@popcnt1 popcnt1 commented Nov 10, 2024

Summary

new version of anyhow with std backtrace is much slower: dtolnay/anyhow#347

```
cargo bench --bench bench_utils


anyhow_error_bench/anyhow_v1.0.93
                        time:   [15.040 ns 15.148 ns 15.259 ns]
                        change: [+1.5448% +2.1215% +2.7219%] (p = 0.00 < 0.05)
                        Performance has regressed.
anyhow_error_bench/anyhow_v1.0.76
                        time:   [6.2104 ns 6.2182 ns 6.2278 ns]
                        change: [-0.4029% -0.1998% +0.0002%] (p = 0.06 > 0.05)
                        No change in performance detected.
Found 10 outliers among 100 measurements (10.00%)
  2 (2.00%) high mild
  8 (8.00%) high severe
...

Downgraded anyhow dependency from version 1.0.93 to 1.0.76. Won't break anything but gain better perf.

new version of anyhow with std backtrace is much slower: dtolnay/anyhow#347

```
cargo bench --bench bench_utils

...

anyhow_error_bench/anyhow_v1.0.93
                        time:   [15.040 ns 15.148 ns 15.259 ns]
                        change: [+1.5448% +2.1215% +2.7219%] (p = 0.00 < 0.05)
                        Performance has regressed.
anyhow_error_bench/anyhow_v1.0.76
                        time:   [6.2104 ns 6.2182 ns 6.2278 ns]
                        change: [-0.4029% -0.1998% +0.0002%] (p = 0.06 > 0.05)
                        No change in performance detected.
Found 10 outliers among 100 measurements (10.00%)
  2 (2.00%) high mild
  8 (8.00%) high severe
```
Downgraded anyhow dependency from version 1.0.93 to 1.0.76. Won't break anything but gain better perf.
Copy link

vercel bot commented Nov 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rooch-portal-v2.1 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 10, 2024 11:35am
test-portal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 10, 2024 11:35am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
rooch ⬜️ Ignored (Inspect) Visit Preview Nov 10, 2024 11:35am

@jolestar jolestar merged commit dbb59d7 into rooch-network:main Nov 10, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants