Skip to content

Comments

refactor(revme): consolidate find_all_json_tests in dir_utils#3262

Merged
rakita merged 1 commit intobluealloy:mainfrom
letmehateu:code-duplication
Jan 9, 2026
Merged

refactor(revme): consolidate find_all_json_tests in dir_utils#3262
rakita merged 1 commit intobluealloy:mainfrom
letmehateu:code-duplication

Conversation

@letmehateu
Copy link
Contributor

Eliminates code duplication by consolidating three implementations of find_all_json_tests into a single, complete implementation in the shared dir_utils module.

@codspeed-hq
Copy link

codspeed-hq bot commented Dec 29, 2025

CodSpeed Performance Report

Merging #3262 will degrade performance by 3.71%

Comparing letmehateu:code-duplication (978a227) with main (d551ca7)

Summary

❌ 2 regressions
✅ 171 untouched

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Efficiency
transact_1000tx_commit_inner_every_40 2.5 ms 2.6 ms -3.4%
transact_commit_1000txs 3.2 ms 3.3 ms -3.71%

@letmehateu letmehateu closed this Dec 29, 2025
@letmehateu letmehateu reopened this Dec 29, 2025
@letmehateu
Copy link
Contributor Author

sorry, maybe i shouldn't close my PR, because i'm not sure my changes could degrade performance.

Copy link
Member

@rakita rakita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you merge with main, and revert other changed.

Main change of using only one find_all_json_tests lgtm.

Perf is not related to this PR, hashmap is flaky

Eliminate code duplication by consolidating three separate implementations
of find_all_json_tests into a single shared implementation in the dir_utils
module. This reduces maintenance burden and ensures consistent behavior
across blockchaintest and statetest commands.
Copy link
Member

@rakita rakita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rakita rakita merged commit 6afbaf9 into bluealloy:main Jan 9, 2026
30 of 31 checks passed
@github-actions github-actions bot mentioned this pull request Jan 9, 2026
@letmehateu letmehateu deleted the code-duplication branch January 12, 2026 19:49
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