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 deque implementation in deposit contract #2402

Merged
merged 1 commit into from
Feb 26, 2025
Merged

Conversation

JamesHinshelwood
Copy link
Contributor

The old implementation was objectively broken and unnecessarily complicated. Instead, we just store elements in a mapping(index => element).

Copy link
Contributor

github-actions bot commented Feb 25, 2025

🐰 Bencher Report

Branchfix-deque
Testbedself-hosted
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
full-blocks-erc20-transfers/full-blocks-erc20-transfers📈 view plot
🚷 view threshold
1,205.70 ms
(+4.80%)Baseline: 1,150.50 ms
1,532.56 ms
(78.67%)
full-blocks-evm-transfers/full-blocks-evm-transfers📈 view plot
🚷 view threshold
389.16 ms
(-8.12%)Baseline: 423.57 ms
528.19 ms
(73.68%)
full-blocks-zil-transfers/full-blocks-zil-transfers📈 view plot
🚷 view threshold
3,318.10 ms
(-14.29%)Baseline: 3,871.40 ms
5,226.75 ms
(63.48%)
process-empty/process-empty📈 view plot
🚷 view threshold
10.00 ms
(+3.98%)Baseline: 9.62 ms
11.85 ms
(84.42%)
🐰 View full continuous benchmarking report in Bencher

@JamesHinshelwood
Copy link
Contributor Author

Fixes #2400

The old implementation was objectively broken and unnecessarily
complicated. Instead, we just store elements in a
`mapping(index => element)`.
@JamesHinshelwood JamesHinshelwood added this pull request to the merge queue Feb 26, 2025
Merged via the queue into main with commit 4b7749d Feb 26, 2025
6 checks passed
@JamesHinshelwood JamesHinshelwood deleted the fix-deque branch February 26, 2025 10:48
JamesHinshelwood added a commit that referenced this pull request Feb 28, 2025
PR #2402 forgot to update the chain specs.

This also adds a script to easily update the spec files for all
networks.
github-merge-queue bot pushed a commit that referenced this pull request Feb 28, 2025
PR #2402 forgot to update the chain specs.

This also adds a script to easily update the spec files for all
networks.
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