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

Experiment with a referring API #24

Closed
pimeys opened this issue Jun 2, 2018 · 1 comment
Closed

Experiment with a referring API #24

pimeys opened this issue Jun 2, 2018 · 1 comment

Comments

@pimeys
Copy link
Contributor

pimeys commented Jun 2, 2018

The builders allocate new strings too much due to the Service trait and infernal lifetime problems. One idea would be to have service to take String in and make the Client#send to convert a Payload<'a> to a JSON String; builders and payload would then only hold references to the input data and we'd have only one allocation.

This is a place for experimentation and other ideas how to do this are also appreciated.

@pimeys
Copy link
Contributor Author

pimeys commented Jun 4, 2018

Done in #25

@pimeys pimeys closed this as completed Jun 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant