zulip/zerver
Tim Abbott cd2348e9ae Run queue processers multithreaded in development.
This change drops the memory used for Python processes run by Zulip in
development from about 1GB to 300MB on my laptop.

On the front of safety, http://pika.readthedocs.org/en/latest/faq.html
explains "Pika does not have any notion of threading in the code. If
you want to use Pika with threading, make sure you have a Pika
connection per thread, created in that thread. It is not safe to share
one Pika connection across threads.".  Since this code only connects
to rabbitmq inside the individual threads, I believe this should be
safe.

Progress towards #32.
2016-03-20 18:04:24 -07:00
..
fixtures Add integration for Travis CI. 2015-11-30 20:41:33 -08:00
lib Run queue processers multithreaded in development. 2016-03-20 18:04:24 -07:00
management Run queue processers multithreaded in development. 2016-03-20 18:04:24 -07:00
migrations Add missing migrations present in models.py. 2016-01-26 20:38:46 -08:00
templatetags Cleanup remaining usage of % comprehensions without explicit tuples. 2015-12-05 15:29:42 -08:00
views Partially apply Python 3 libmodernize.fixes.fix_dict_six. 2016-03-19 15:52:58 -07:00
worker Run queue processers multithreaded in development. 2016-03-20 18:04:24 -07:00
__init__.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
context_processors.py enterprise => voyager 2015-08-21 10:33:35 -07:00
decorator.py Migrate use of StringIO to Python 2+3 compatible six.moves.cStringIO. 2016-01-26 21:09:43 -08:00
exceptions.py Enable absolute imports for non-third-party code where it was omitted previously 2013-10-25 14:13:30 -04:00
filters.py Add api_key to filtered variables. 2013-12-12 10:31:03 -05:00
finders.py [manual] Move our deployment scripts to scripts/. 2013-10-28 10:54:48 -04:00
forms.py Fix support for having a unique, open realm. 2016-01-09 22:52:34 -08:00
handlers.py STAGING_DEPLOYED => ZULIP_COM_STAGING 2015-08-21 10:33:35 -07:00
middleware.py python3: Add missing utf-8 encoding/decoding in various places. 2016-03-08 09:14:15 -08:00
models.py python3: Add missing utf-8 encoding/decoding in various places. 2016-03-08 09:14:15 -08:00
static_header.txt Update copyright to 2014. 2014-02-04 15:51:53 -05:00
storage.py storage: Fix type error returning nothing in dry run case. 2016-02-03 19:29:44 -08:00
test_bugdown.py Partially apply Python 3 libmodernize.fixes.fix_dict_six. 2016-03-19 15:52:58 -07:00
test_decorators.py Use new-style classes consistently for Python 3 support. 2015-11-04 08:01:52 -08:00
test_email_mirror.py Replace json/send_message endpoint usage with json/message. 2015-12-12 18:14:08 -08:00
test_events.py EventsRegisterTest: Remove unused variable maxDiff. 2016-02-03 19:25:17 -08:00
test_external.py Migrate use of StringIO to Python 2+3 compatible six.moves.cStringIO. 2016-01-26 21:09:43 -08:00
test_hooks.py Switch all urllib/urlparse usage to six.moves.urllib. 2016-01-26 21:09:43 -08:00
test_messages.py Replace json/send_message endpoint usage with json/message. 2015-12-12 18:14:08 -08:00
test_signup.py Partially apply Python 3 libmodernize.fixes.fix_dict_six. 2016-03-19 15:52:58 -07:00
test_subs.py Partially apply Python 3 libmodernize.fixes.fix_dict_six. 2016-03-19 15:52:58 -07:00
test_unread.py Move some tests into test_unread.py 2014-02-10 13:23:27 -05:00
test_urls.py Add test that all functions defined in urls.py actually exist. 2016-02-07 19:21:53 -08:00
tests.py Run queue processers multithreaded in development. 2016-03-20 18:04:24 -07:00
tornadoviews.py Don't access/store full Client objects in Tornado queue servers. 2016-01-26 21:04:32 -08:00