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

Write to the outgoing pipeline directly #245

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lukebakken
Copy link
Contributor

I still have benchmarking to do, but this method should be faster.

Learning a bit after reading about System.IO.Pipelines - link

@lukebakken lukebakken self-assigned this Mar 3, 2023
@lukebakken lukebakken added this to the 2.0.0 milestone Mar 3, 2023
@Gsantomaggio
Copy link
Member

That's great @lukebakken !

@lukebakken lukebakken force-pushed the lukebakken/write-to-pipeline-directly branch from 638369b to 1606f7b Compare March 3, 2023 15:17
@codecov
Copy link

codecov bot commented Mar 3, 2023

Codecov Report

Patch coverage: 95.69% and project coverage change: +0.30 🎉

Comparison is base (e42d8fe) 92.80% compared to head (1175caa) 93.11%.

❗ Current head 1175caa differs from pull request most recent head 9bbd2cd. Consider uploading reports for the commit 9bbd2cd to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #245      +/-   ##
==========================================
+ Coverage   92.80%   93.11%   +0.30%     
==========================================
  Files         102      102              
  Lines        8869     8810      -59     
  Branches      704      676      -28     
==========================================
- Hits         8231     8203      -28     
+ Misses        492      468      -24     
+ Partials      146      139       -7     
Impacted Files Coverage Δ
RabbitMQ.Stream.Client/Client.cs 92.84% <ø> (+0.92%) ⬆️
RabbitMQ.Stream.Client/CloseResponse.cs 82.35% <ø> (ø)
...bitMQ.Stream.Client/ConsumerUpdateQueryResponse.cs 85.00% <ø> (ø)
RabbitMQ.Stream.Client/CreditResponse.cs 70.00% <ø> (ø)
RabbitMQ.Stream.Client/DeclarePublisherResponse.cs 82.35% <ø> (ø)
RabbitMQ.Stream.Client/DeletePublisherResponse.cs 82.35% <ø> (ø)
RabbitMQ.Stream.Client/Deliver.cs 95.45% <ø> (-0.50%) ⬇️
RabbitMQ.Stream.Client/ICommand.cs 50.00% <ø> (ø)
RabbitMQ.Stream.Client/OpenResponse.cs 90.00% <ø> (ø)
RabbitMQ.Stream.Client/PartitionsQueryResponse.cs 91.30% <ø> (ø)
... and 34 more

... and 9 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@lukebakken lukebakken force-pushed the lukebakken/write-to-pipeline-directly branch from 4579c18 to 025a12a Compare March 12, 2023 02:19
@lukebakken lukebakken force-pushed the lukebakken/write-to-pipeline-directly branch from 12b2d60 to 9bbd2cd Compare May 9, 2023 14:36
@Gsantomaggio
Copy link
Member

Have you tried the perf test with this PR to see if there is any improvement?

@lukebakken lukebakken force-pushed the lukebakken/write-to-pipeline-directly branch 3 times, most recently from 837d49b to 2ef446a Compare July 23, 2024 14:24
See:
https://blog.marcgravell.com/2018/07/pipe-dreams-part-3.html#writes-and-wrongs

* Fixup API validation
* Add assertion
* Fix a missing Advance/1 call
* Add FUTURE
* Replace span slices with range operator.
* Fix name violations

* Add missing `writer.Advance` calls

* Fix writing the command payload size.

* Add more missing `writer.Advance` calls

* Update dependency versions for CI
@lukebakken lukebakken force-pushed the lukebakken/write-to-pipeline-directly branch from a960cb0 to 3cf0d51 Compare July 25, 2024 15:34
@Gsantomaggio Gsantomaggio added the v2 Version 2 label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2 Version 2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants