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

chore(mempool_infra): wrap serde operations with generic custom struc… #904

Conversation

Itay-Tsabary-Starkware
Copy link
Contributor

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware commented Sep 20, 2024

…t towards binary serde

commit-id:325d0501


Stack:

⚠️ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.


This change is Reviewable

Copy link

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [66.970 ms 67.116 ms 67.309 ms]
change: [-9.4722% -6.1111% -3.0439%] (p = 0.00 < 0.05)
Performance has improved.
Found 5 outliers among 100 measurements (5.00%)
2 (2.00%) high mild
3 (3.00%) high severe

Copy link

codecov bot commented Sep 22, 2024

Codecov Report

Attention: Patch coverage is 70.00000% with 12 lines in your changes missing coverage. Please review.

Project coverage is 29.38%. Comparing base (b0cfe82) to head (0426588).
Report is 35 commits behind head on main.

Files with missing lines Patch % Lines
...ensus_manager_types/src/consensus_manager_types.rs 0.00% 4 Missing ⚠️
crates/mempool_types/src/communication.rs 0.00% 3 Missing ⚠️
crates/batcher_types/src/communication.rs 0.00% 2 Missing ⚠️
...rates/consensus_manager_types/src/communication.rs 0.00% 2 Missing ⚠️
crates/mempool_infra/src/serde_utils.rs 90.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #904       +/-   ##
===========================================
- Coverage   74.18%   29.38%   -44.81%     
===========================================
  Files         359      137      -222     
  Lines       36240    12971    -23269     
  Branches    36240    12971    -23269     
===========================================
- Hits        26886     3811    -23075     
- Misses       7220     8885     +1665     
+ Partials     2134      275     -1859     
Flag Coverage Δ
29.38% <70.00%> (-44.81%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware changed the title chore(mempool_infra): wrap serde operations with generic custom struct towards binary serde chore(mempool_infra): wrap serde operations with generic custom struc… Sep 22, 2024
@Itay-Tsabary-Starkware Itay-Tsabary-Starkware changed the base branch from pr/Itay-Tsabary-Starkware/tsabary/remote_connetion/7e0d8402 to main September 22, 2024 06:52
@Itay-Tsabary-Starkware Itay-Tsabary-Starkware force-pushed the pr/Itay-Tsabary-Starkware/tsabary/remote_connetion/325d0501 branch from 1c0cdef to cc2530b Compare September 22, 2024 06:52
@Itay-Tsabary-Starkware Itay-Tsabary-Starkware changed the title chore(mempool_infra): wrap serde operations with generic custom struc… chore(mempool_infra): wrap serde operations with generic custom struct towards binary serde Sep 22, 2024
@Itay-Tsabary-Starkware Itay-Tsabary-Starkware changed the base branch from main to pr/Itay-Tsabary-Starkware/tsabary/remote_connetion/93bc459d September 22, 2024 06:52
@Itay-Tsabary-Starkware Itay-Tsabary-Starkware force-pushed the pr/Itay-Tsabary-Starkware/tsabary/remote_connetion/325d0501 branch from cc2530b to 8c2ab8a Compare September 22, 2024 06:54
Copy link

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [66.964 ms 67.078 ms 67.206 ms]
change: [-9.5129% -6.0462% -2.9713%] (p = 0.00 < 0.05)
Performance has improved.
Found 11 outliers among 100 measurements (11.00%)
7 (7.00%) high mild
4 (4.00%) high severe

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware force-pushed the pr/Itay-Tsabary-Starkware/tsabary/remote_connetion/325d0501 branch from 8c2ab8a to 46ca74c Compare September 22, 2024 07:05
@Itay-Tsabary-Starkware Itay-Tsabary-Starkware force-pushed the pr/Itay-Tsabary-Starkware/tsabary/remote_connetion/93bc459d branch from 192301f to 56b3c96 Compare September 22, 2024 07:05
@Itay-Tsabary-Starkware Itay-Tsabary-Starkware force-pushed the pr/Itay-Tsabary-Starkware/tsabary/remote_connetion/325d0501 branch 2 times, most recently from 2f148c9 to 126c2dc Compare September 22, 2024 07:55
@Itay-Tsabary-Starkware Itay-Tsabary-Starkware force-pushed the pr/Itay-Tsabary-Starkware/tsabary/remote_connetion/93bc459d branch from a66db70 to b18f8fc Compare September 22, 2024 08:40
@Itay-Tsabary-Starkware Itay-Tsabary-Starkware force-pushed the pr/Itay-Tsabary-Starkware/tsabary/remote_connetion/325d0501 branch from 126c2dc to 17a134b Compare September 22, 2024 08:40
@Itay-Tsabary-Starkware Itay-Tsabary-Starkware force-pushed the pr/Itay-Tsabary-Starkware/tsabary/remote_connetion/93bc459d branch from b18f8fc to 9b3c9c2 Compare September 22, 2024 10:29
@Itay-Tsabary-Starkware Itay-Tsabary-Starkware force-pushed the pr/Itay-Tsabary-Starkware/tsabary/remote_connetion/325d0501 branch from 17a134b to 6e5791d Compare September 22, 2024 10:29
@Itay-Tsabary-Starkware Itay-Tsabary-Starkware changed the title chore(mempool_infra): wrap serde operations with generic custom struct towards binary serde chore(mempool_infra): wrap serde operations with generic custom struc… Sep 22, 2024
@Itay-Tsabary-Starkware Itay-Tsabary-Starkware changed the base branch from pr/Itay-Tsabary-Starkware/tsabary/remote_connetion/93bc459d to main September 22, 2024 11:09
@Itay-Tsabary-Starkware Itay-Tsabary-Starkware changed the title chore(mempool_infra): wrap serde operations with generic custom struc… chore(mempool_infra): wrap serde operations with generic custom struct towards binary serde Sep 22, 2024
@Itay-Tsabary-Starkware Itay-Tsabary-Starkware changed the base branch from main to pr/Itay-Tsabary-Starkware/tsabary/remote_connetion/93bc459d September 22, 2024 11:09
@Itay-Tsabary-Starkware Itay-Tsabary-Starkware force-pushed the pr/Itay-Tsabary-Starkware/tsabary/remote_connetion/325d0501 branch from 6e5791d to 37a1dee Compare September 22, 2024 11:09
Copy link
Contributor

@lev-starkware lev-starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 13 files reviewed, 3 unresolved discussions (waiting on @Itay-Tsabary-Starkware)


crates/gateway_types/src/communication.rs line 81 at r1 (raw file):

//         }
//     }
// }

If this code is not needed, it is better to delete it.

Code quote:

// #[async_trait]
// impl GatewayClient for RemoteGatewayClientImpl {
//     #[instrument(skip(self))]
//     async fn add_tx(&self, gateway_input: GatewayInput) -> GatewayClientResult<TransactionHash> {
//         let request = GatewayRequest::AddTransaction(gateway_input);
//         let response = self.send(request).await?;
//         match response {
//             GatewayResponse::AddTransaction(Ok(response)) => Ok(response),
//             GatewayResponse::AddTransaction(Err(response)) => {
//                 Err(GatewayClientError::GatewayError(response))
//             }
//         }
//     }
// }

crates/mempool_infra/src/component_client/remote_component_client.rs line 82 at r1 (raw file):

impl<Request, Response> RemoteComponentClient<Request, Response>
where
    Request: Serialize + DeserializeOwned + std::fmt::Debug + Clone,

Add "use std::fmt::Debug" as per other modules.

Code quote:

std::fmt::Debug

crates/mempool_infra/src/component_server/remote_component_server.rs line 112 at r1 (raw file):

impl<Request, Response> RemoteComponentServer<Request, Response>
where
    Request: Serialize + DeserializeOwned + std::fmt::Debug + Send + Sync + 'static,

Add "use std::fmt::Debug" as per other modules.

Code quote:

std::fmt::Debug

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware force-pushed the pr/Itay-Tsabary-Starkware/tsabary/remote_connetion/325d0501 branch from 37a1dee to d4d9698 Compare September 24, 2024 08:24
@Itay-Tsabary-Starkware Itay-Tsabary-Starkware force-pushed the pr/Itay-Tsabary-Starkware/tsabary/remote_connetion/93bc459d branch from 74e4436 to 5c7105f Compare September 24, 2024 08:24
@Itay-Tsabary-Starkware Itay-Tsabary-Starkware force-pushed the pr/Itay-Tsabary-Starkware/tsabary/remote_connetion/325d0501 branch from d4d9698 to 21ce914 Compare September 24, 2024 08:28
@Itay-Tsabary-Starkware Itay-Tsabary-Starkware force-pushed the pr/Itay-Tsabary-Starkware/tsabary/remote_connetion/93bc459d branch from 5c7105f to 84f37c0 Compare September 24, 2024 08:28
@Itay-Tsabary-Starkware Itay-Tsabary-Starkware force-pushed the pr/Itay-Tsabary-Starkware/tsabary/remote_connetion/325d0501 branch from 21ce914 to 0426588 Compare September 24, 2024 08:31
Copy link
Contributor Author

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 13 files reviewed, 3 unresolved discussions (waiting on @lev-starkware)


crates/gateway_types/src/communication.rs line 81 at r1 (raw file):

Previously, lev-starkware wrote…

If this code is not needed, it is better to delete it.

Done.


crates/mempool_infra/src/component_client/remote_component_client.rs line 82 at r1 (raw file):

Previously, lev-starkware wrote…

Add "use std::fmt::Debug" as per other modules.

Done.


crates/mempool_infra/src/component_server/remote_component_server.rs line 112 at r1 (raw file):

Previously, lev-starkware wrote…

Add "use std::fmt::Debug" as per other modules.

Done.

Copy link
Contributor

@lev-starkware lev-starkware left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 6 of 13 files at r1, 3 of 6 files at r2, 3 of 3 files at r3, all commit messages.
Reviewable status: 12 of 13 files reviewed, 3 unresolved discussions

Copy link
Contributor Author

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a comment

Choose a reason for hiding this comment

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

Reviewed 6 of 13 files at r1, 4 of 6 files at r2, 3 of 3 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @Itay-Tsabary-Starkware)

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware changed the title chore(mempool_infra): wrap serde operations with generic custom struct towards binary serde chore(mempool_infra): wrap serde operations with generic custom struc… Sep 24, 2024
@Itay-Tsabary-Starkware Itay-Tsabary-Starkware changed the base branch from pr/Itay-Tsabary-Starkware/tsabary/remote_connetion/93bc459d to main September 24, 2024 10:24
@Itay-Tsabary-Starkware Itay-Tsabary-Starkware merged commit 958ce8c into main Sep 24, 2024
12 checks passed
Copy link

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [66.255 ms 66.342 ms 66.439 ms]
change: [-8.3249% -4.3125% -1.0063%] (p = 0.01 < 0.05)
Performance has improved.
Found 5 outliers among 100 measurements (5.00%)
5 (5.00%) high severe

@github-actions github-actions bot locked and limited conversation to collaborators Sep 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants