rabbitmq / rabbitmq/rabbitmq-java-client

Use array fragment for message body

Open
#422 2 comments 4 reactions 1 assignee View on GitHub

@acogoluegnes is already working on this.

Since Oct 31, 2018.

effort-low enhancement
Dominant language
Java
Stars
1.3k
Forks
587
Avg merge
7h 29m
Merged PRs (30d)
41

Description

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, https://github.com/rabbitmq/rabbitmq-java-client/issues/421#issuecomment-433948206, https://github.com/rabbitmq/rabbitmq-java-client/issues/421#issuecomment-433963410.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.