longbowrocks

Results 5 comments of longbowrocks

@irgeek read further: > In the example above, each thread would have its own Boto 3 **session** and its own instance of the S3 resource. Read issue https://github.com/boto/botocore/issues/1246 for more...

@cscholer cache and reuse sessions. A thread-local cash is fine. That way you won't create way too many sessions.

It's really hard to check python memory usage like that because you're getting memory used by *all* processes on your computer. Here's a slightly modified script to get the actual...

Alternatively, I guess `psutil.Process(name='python3').memory_info().rss` would work too.

For reference, here's what I got when I ran your script: ![image](https://user-images.githubusercontent.com/17679689/67990593-95c74500-fbf3-11e9-96a0-d67455463bf9.png)