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

Request should be able to take an existing Packet instead of creating a new one #69

Open
taoeffect opened this issue Apr 23, 2014 · 1 comment

Comments

@taoeffect
Copy link
Collaborator

Relays that forward questions from user to other resolver shouldn't have to spend CPU cycles recreating Packet objects. They should just be able to immediately forward them on to the other resolver (and then forward the response back to the requester).

This can be implemented by creating a constructor that takes an optional Packet. If given a Packet, then no copying of values is done, just perhaps recreating a proper _socket, or whatever is elegant.

@taoeffect
Copy link
Collaborator Author

Somewhat related to #67

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

No branches or pull requests

1 participant