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

Trace send_output as it can be a big source of overhead for large messages #384

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

haixuanTao
Copy link
Collaborator

In order to implement better automatic performance tracking, I had this traces on send_output.

The thing is that send_output is going to be in charges of doing the allocation and memcpy of the data when sending hence it can be a bit of overhead sometimes.

I have added this only for Python for now as we can do zero copy in Rust making it less interesting.

Copy link
Collaborator

@phil-opp phil-opp left a comment

Choose a reason for hiding this comment

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

Sounds reasonable, thanks!

@haixuanTao
Copy link
Collaborator Author

Neat thanks!

@haixuanTao haixuanTao merged commit 798734f into main Nov 22, 2023
17 checks passed
@haixuanTao haixuanTao deleted the tracing-send-output branch November 22, 2023 13:05
@haixuanTao haixuanTao mentioned this pull request Jan 9, 2024
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