Python 2 performance patches: decimal to cdecimal, json to ujson for psycopg2
Project description
decimal-monkeypatch
A Python module based on autowrapt for:
- interpreter-wide monkey patching slow
decimal
module to cdecimal on Python 2 with preservation of the functionality of theboto
lib. psycopg2
json
toujson
replacement
Usage
pip install decimal-monkeypatch
- set
AUTOWRAPT_BOOTSTRAP=decimal
env variable fordecimal
patch activation - set
AUTOWRAPT_BOOTSTRAP=psycopg2
env variable forpsycopg2
patch activation - set
AUTOWRAPT_BOOTSTRAP=decimal,psycopg2
for bouth
Additional reading
- Swapping decimal for cdecimal on Python 2
- Automatic patching of Python applications
- Discussion about json module selection in psycopg2
WARNING
Tested on only this configuration:
Python 2.7.12+
boto
2.48.0
m3-cdecimal
2.3
psycopg2-binary
2.7.4
ujson
1.35
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for decimal-monkeypatch-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc06309b631eb8d2579f8a2f30fcaba2a672955bd1889f659b54a6d58a63f85d |
|
MD5 | 50f676a6539856a900ef5de5480f0706 |
|
BLAKE2b-256 | 915855a759002bfb9590faad791b9708482da86319ef952a9a85cf39be08edcd |
Close
Hashes for decimal_monkeypatch-0.3.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13a33e2c7e71b70a9a0e6db75430f0a73e4e09ddcb1963ba81304845483eb983 |
|
MD5 | 9e13185eca429c713c71f5171e902a9a |
|
BLAKE2b-256 | f6d526a1a26cf0d1794bd8120e5cf62bcf76df93d7f21a422e2dca611cc44cb7 |