Improving Driver Performance¶
goblin.driver aims to be as performant as possible, yet it is
potentially limited by implementation details, as well as its underlying
software stack i.e., the websocket client, the event loop implementation, etc.
If necessary, a few tricks can boost its performance.
$ pip install cython
ujson to speed up serialzation:
$ pip install ujson
uvloop, a Cython implementation of an event loop:
$ pip install uvloop
Then, in application code, set the
>>> import asyncio >>> import uvloop >>> asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())