Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Construct Message from ArraySegment when sending to Queue #404

Open
CodeBlanch opened this issue Jan 16, 2018 · 0 comments
Open

Construct Message from ArraySegment when sending to Queue #404

CodeBlanch opened this issue Jan 16, 2018 · 0 comments

Comments

@CodeBlanch
Copy link

In the current version of the library the Message object is constructed from a byte[] or Body can be set from a byte[]. In our case, messages are sourcing from a Socket where 4k buffers are read and reused from a pool. We want to construct Message objects to be sent to the Queue from ArraySegments spanning subsets of the 4k buffers. The API does not currently support such a pattern which forces us to allocate buffers and copy data which adds overhead and GC pressure. In high-performance, high-throughput situations, this becomes a significant performance hit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant