Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coolamqp
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
coolamqp
Commits
2d4ffed6
Commit
2d4ffed6
authored
8 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
memoryviews will stay
parent
dfe58460
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/caveats.md
+7
-0
7 additions, 0 deletions
docs/caveats.md
with
7 additions
and
0 deletions
docs/caveats.md
+
7
−
0
View file @
2d4ffed6
...
@@ -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.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment