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

Optimize ockam node create #8755

Merged
merged 1 commit into from
Feb 3, 2025
Merged

Optimize ockam node create #8755

merged 1 commit into from
Feb 3, 2025

Conversation

SanjoDeundiak
Copy link
Member

@SanjoDeundiak SanjoDeundiak commented Jan 15, 2025

  1. Move tokio Runtime creation to the earliest possible during ockam command execution
  2. Avoid creating tokio Runtime more than once
  3. Remove Runtime singletin inside ockam_node create
  4. Remove most of the blocking calls
  5. Simplify commands to support only async execution
  6. Add timeout to Tcp connections
  7. Optimize node creation by replacing readiness check from polling to TCP callback
  8. Move logging setup to the earliest possible
  9. Simplify CliState

@SanjoDeundiak SanjoDeundiak force-pushed the sanjo/node_callback branch 9 times, most recently from 357e149 to bb8b008 Compare January 16, 2025 20:59
@SanjoDeundiak SanjoDeundiak changed the title feat(rust): create tokio Runtime in a predictable way and reuse it WIP: clean tokio Runtime usage Jan 16, 2025
@SanjoDeundiak SanjoDeundiak force-pushed the sanjo/node_callback branch 8 times, most recently from ff99ca4 to e53013f Compare January 23, 2025 17:03
@SanjoDeundiak SanjoDeundiak force-pushed the sanjo/node_callback branch 2 times, most recently from 0e286be to 92b1064 Compare January 29, 2025 15:16
@SanjoDeundiak SanjoDeundiak changed the title WIP: clean tokio Runtime usage Optimize ockam node create Jan 29, 2025
@SanjoDeundiak SanjoDeundiak marked this pull request as ready for review January 29, 2025 15:18
@SanjoDeundiak SanjoDeundiak requested a review from a team as a code owner January 29, 2025 15:18
@SanjoDeundiak SanjoDeundiak force-pushed the sanjo/node_callback branch 5 times, most recently from 320c205 to 5a48ccc Compare January 31, 2025 17:02
@SanjoDeundiak SanjoDeundiak force-pushed the sanjo/node_callback branch 17 times, most recently from a6f1f2b to 946b269 Compare January 31, 2025 20:32
@SanjoDeundiak SanjoDeundiak added this pull request to the merge queue Feb 3, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 3, 2025
 - create tokio `Runtime` in a predictable way and reuse it
 - rework `Command` usage
 - add `no_logging` flag to the node
 - optimize node startup
 - replace readiness poll with a callback
@SanjoDeundiak SanjoDeundiak added this pull request to the merge queue Feb 3, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 3, 2025
@SanjoDeundiak SanjoDeundiak added this pull request to the merge queue Feb 3, 2025
Merged via the queue into develop with commit 8cf0036 Feb 3, 2025
46 checks passed
@SanjoDeundiak SanjoDeundiak deleted the sanjo/node_callback branch February 3, 2025 18:32
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