Skip to content
Snippets Groups Projects
Commit 2d4ffed6 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

memoryviews will stay

parent dfe58460
No related branches found
No related tags found
No related merge requests found
...@@ -20,3 +20,10 @@ Note that YOU, when sending messages, should not use memoryviews. Pass proper by ...@@ -20,3 +20,10 @@ Note that YOU, when sending messages, should not use memoryviews. Pass proper by
as required. as required.
_AMQPError_'s returned to you via futures will also have memoryviews as _reply_text_! _AMQPError_'s returned to you via futures will also have memoryviews as _reply_text_!
It was considered whether to unserialize short fields, such as _routing_key_ or _exchange_, but it was decided against.
Creating a new memoryview carries at least much overhead as an empty string, but there's no need to copy.
Plus, it's not known whether you will use these strings at all!
If you need to, you got memoryviews. Plus they support the \__eq__ protocol, which should cover most
use cases without even converting.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment