You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working with large size json body and i have encountered that python-simple-rest-client just takes around *4 memory than i would expected.
I have decided to reimplement my http client using requests directly and looks like i have solved the problem.
After debugging i cam to realise that the pure Json library is ineffective in terms of memory and this is what caused my memory to blow.
I read your code and looks like you are using json_encoder which also uses the pure json lib (unless you choose to change it - which in your case you didn't).
My recommendation:
Do not use json_encoder as is but change the json lib to more effective one.
maybe try to avoid even loading the json if this is only for the reason of constructing Response class. Maybe you should pass the original response.json() as is instead of converting to your own body() function.
The text was updated successfully, but these errors were encountered:
I am working with large size json body and i have encountered that python-simple-rest-client just takes around *4 memory than i would expected.
I have decided to reimplement my http client using requests directly and looks like i have solved the problem.
After debugging i cam to realise that the pure Json library is ineffective in terms of memory and this is what caused my memory to blow.
I read your code and looks like you are using json_encoder which also uses the pure json lib (unless you choose to change it - which in your case you didn't).
My recommendation:
The text was updated successfully, but these errors were encountered: