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

First pass at using simple memcached_get when possible #422

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sodabrew
Copy link
Contributor

In binary mode, memcached_mget always issues two packets, which ends up
making it slower than ascii mode for many users.

This commit incorrectly believes that libmemcached supports UDP get, it
does not, so that assumption needs to be reworked. Maybe UDP mode should
automatically make both a TCP and a UDP connection? Or return a class
with fewer methods so that it can be introspected or used with a magic
method not defined to fall back to a TCP connection class as needed?

In binary mode, memcached_mget always issues two packets, which ends up
making it slower than ascii mode for many users.

This commit incorrectly believes that libmemcached supports UDP get, it
does not, so that assumption needs to be reworked. Maybe UDP mode should
automatically make both a TCP and a UDP connection? Or return a class
with fewer methods so that it can be introspected or used with a magic
method not defined to fall back to a TCP connection class as needed?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant