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

Use array fragment for message body #422

Open
acogoluegnes opened this issue Oct 31, 2018 · 2 comments
Open

Use array fragment for message body #422

acogoluegnes opened this issue Oct 31, 2018 · 2 comments
Assignees
Milestone

Comments

@acogoluegnes
Copy link
Contributor

Sometimes the message body can be just a subset of a byte array and the only way now to send this subset is to copy it into another array and use it as message body.

To avoid a copy, the Channel could be extended with basicPublish methods that accept an array fragment parameter (array of byte, offset, and length).

More context: #421, #421 (comment), #421 (comment).

@michaelklishin
Copy link
Member

Something similar was brought up for .NET recently and was rejected due (but mostly due to questionable implementation choices and specific API changes).

@acogoluegnes acogoluegnes modified the milestones: 4.10.0, 5.6.0 Oct 31, 2018
@acogoluegnes
Copy link
Contributor Author

Similar .NET feature mentioned by @michaelklishin: rabbitmq/rabbitmq-dotnet-client#489

@acogoluegnes acogoluegnes modified the milestones: 5.6.0, 6.0.0 Jan 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants