> On Apr 25, 2016, at 10:37 AM, Ionel Cristian Mărieș <cont...@ionelmc.ro> 
> wrote:
> 
> Probably none of my damn business but why does Warehouse use gevent/eventlet? 
> Does it really need them? Are there hosting constraints that severely limit 
> available RAM (so threads/processes aren't an option)?
> 
> 

Primarily it did that so that it could dynamically reject file uploads without 
having to buffer them entirely in memory or on disk. Without something 
asynchronous to the Python process then we end up having a hard limit set in 
whatever the WSGI server is that buffers files to disk or rejects file uploads 
over a certain size.

Other than that, it doesn’t need it.


-----------------
Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to