Skip to content

Conversation

@polinikita
Copy link
Member

@polinikita polinikita commented Oct 24, 2025

Description of change

Currently, each Connection Knowledge is coordinated by one task and communication with that taks is done using tokio bounded channels. Instead, we propose to use shared access with parking_lot::RwLock for faster access of internal structs. This change implies some refactoring for CordialKnowledge as well. In short, the PR reduces the number of async tasks spawned by CordialKnowledge to two (from committee_size), improving the time needed to create a block bundle when streaming.

Links to any relevant issues

Fixes #9036

How the change has been tested

  • Basic tests (linting, compilation, formatting, unit/integration tests)
  • Patch-specific tests (correctness, functionality coverage)
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that new and existing unit tests pass locally with my changes

@vercel
Copy link

vercel bot commented Oct 24, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

6 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
apps-backend Ignored Ignored Preview Oct 31, 2025 0:32am
apps-ui-kit Ignored Ignored Preview Oct 31, 2025 0:32am
iota-evm-bridge Ignored Ignored Preview Oct 31, 2025 0:32am
iota-multisig-toolkit Ignored Ignored Preview Oct 31, 2025 0:32am
rebased-explorer Ignored Ignored Preview Oct 31, 2025 0:32am
wallet-dashboard Ignored Ignored Preview Oct 31, 2025 0:32am

@iota-ci iota-ci added consensus Issues related to the Core Consensus team core-protocol labels Oct 24, 2025
@polinikita polinikita self-assigned this Oct 24, 2025
@polinikita polinikita force-pushed the consensus/feat/refactor-cordial-knowledge-for-faster-access branch from 9278093 to d0761ab Compare October 27, 2025 12:45
@polinikita polinikita changed the title feat(consensus): refactor Cordial Knowledge to speed access to ConnectionKnowledge feat(consensus): refactor Cordial Knowledge to speed up access to ConnectionKnowledge Oct 27, 2025
@polinikita polinikita marked this pull request as ready for review October 27, 2025 12:55
@polinikita polinikita requested a review from a team as a code owner October 27, 2025 12:55
@polinikita polinikita requested review from a team as code owners October 29, 2025 15:11
@github-actions github-actions bot added documentation Improvements or additions to documentation wallet Issues related to the IOTA Wallet ts-sdk Issues related to the TS SDK explorer Issues related to the Explorer wallet-dashboard Issues related to the Wallet Dashboard dApp evm-bridge Issues related to the EVM Explorer labels Oct 29, 2025
@polinikita polinikita force-pushed the consensus/feat/refactor-cordial-knowledge-for-faster-access branch from d183c98 to 3d69882 Compare October 29, 2025 15:13
@polinikita polinikita requested review from VorobyevIlya and filipdulic and removed request for a team October 29, 2025 15:13
@github-actions
Copy link
Contributor

✅ Vercel Preview Deployment is ready!

View Preview

@polinikita polinikita removed documentation Improvements or additions to documentation wallet Issues related to the IOTA Wallet ts-sdk Issues related to the TS SDK explorer Issues related to the Explorer wallet-dashboard Issues related to the Wallet Dashboard dApp labels Oct 30, 2025
@polinikita polinikita removed the evm-bridge Issues related to the EVM Explorer label Oct 30, 2025
@polinikita polinikita force-pushed the consensus/feat/refactor-cordial-knowledge-for-faster-access branch from a096d56 to e646e88 Compare October 30, 2025 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

consensus Issues related to the Core Consensus team core-protocol

Projects

None yet

Development

Successfully merging this pull request may close these issues.

starfish: refactor cordial knowledge to improve write access for Connection Knowledge

4 participants