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

refactor(pipeline): reduce memcopy by avoiding whole L1BlockWithBody clone and optimize tx_hash caching #3259

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

popcnt1
Copy link
Collaborator

@popcnt1 popcnt1 commented Feb 3, 2025

Summary

  1. Refactored tx_hash caching to improve performance and reduce redundancy
  2. memmove of block body is unnecessary
  3. L1Block is small, that's the real field we need to share between actors. Clone it but not whole L1BlockWithBody
  4. Increase tx count and measurement time for benchmarking

Copy link

vercel bot commented Feb 3, 2025

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 Feb 3, 2025 1:18pm
test-portal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 3, 2025 1:18pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
rooch ⬜️ Ignored (Inspect) Visit Preview Feb 3, 2025 1:18pm

…clone and optimize tx_hash caching

1. Refactored tx_hash caching to improve performance and reduce redundancy
2. memmove of block body is unnecessary
3. L1Block is small, that's the real field we need to share between actors. Clone it but not whole L1BlockWithBody
4.  Increase tx count and measurement time for benchmarking
@jolestar jolestar merged commit bb595bc into rooch-network:main Feb 4, 2025
10 checks passed
@popcnt1 popcnt1 deleted the refactor/mem/alloc branch February 4, 2025 08:21
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