Skip to content

Allow users to configure APIs to not convert return values to JSON #912

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

Closed
deliahu opened this issue Mar 25, 2020 · 1 comment
Closed

Allow users to configure APIs to not convert return values to JSON #912

deliahu opened this issue Mar 25, 2020 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@deliahu
Copy link
Member

deliahu commented Mar 25, 2020

Description

Allow users to configure APIs to not convert return Predictor values to JSON; Predict() should then return a string which would be passed through unmodified to the response.

Motivation

Converting to JSON can be time consuming on large tensors; a faster approach may be to serialize the tensor using e.g. pickle.dumps() and then respond with the string.

Note that to use pickle.dumps(), the client must be in Python, but there still may be other valid/faster serialization tools other than json

@deliahu deliahu added enhancement New feature or request v0.16 labels Mar 25, 2020
@deliahu
Copy link
Member Author

deliahu commented Mar 26, 2020

Closing in favor of #913

@deliahu deliahu closed this as completed Mar 26, 2020
@deliahu deliahu added this to the v0.16 milestone Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant