-
Notifications
You must be signed in to change notification settings - Fork 2
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
time execution not decreased #3
Comments
Hi @chenbeh, thanks for using
|
hi @ronlut, thanks for your quick reply: |
@chenbeh Do you have some test to help me check the scenario you are describing? |
Hi @chenbeh, please take a look on some benchmarks I added and their source code. There is a small degradation in performance (about 1-2%) when using the library compared to doing the decompression in the function itself. I couldn't figure it out in the limited time I had. If you have any idea or want to help investigate you are more than welcome. |
@ronlut oh, @chenbeh is a colleague 😄 I've already thought about the fact, that flask executes flask-inflate in the main thread and then passes the decompressed request to a new thread to process requests asynchronously. But tbh, I am not that familiar with flask or Python but that was a guess I took when I realized that the exact same code was executed faster when using gunzip in the endpoint rather than a decorator. Is flask using multithreading to process http requests? |
I have a question about the execution time.
Of course , the raw json input file will be larger than the gzipped one.
What I am expecting to have, is to decrease the time execution and to increase RPS.
Decreasing the input file size will automatically decrease the transfer time between client <==> server, which will automatically enhance the time performance on the server.
When I tried flask-inflate, everything was working as expecting and we are getting the correct response with and wihtout compression.
The only problem that make me confused, is that the execution time is not decreasd at all.
Any idea why this is happening ?
The text was updated successfully, but these errors were encountered: