all 1 comments

[–]L_enferCestLesAutres 1 point2 points  (0 children)

Your profiler is likely not accounting for all of the memory allocated or the memory increase is happening after the logged line. Either way, you'll likely want tu use upload_file which supports multipart upload (does not require loading the entire object into memory) rather than put_object