Skip to main content

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 the boto lib.
  • psycopg2 json to ujson replacement
Usage

pip install decimal-monkeypatch

  • set AUTOWRAPT_BOOTSTRAP=decimal env variable for decimal patch activation
  • set AUTOWRAPT_BOOTSTRAP=psycopg2 env variable for psycopg2 patch activation
  • set AUTOWRAPT_BOOTSTRAP=decimal,psycopg2 for bouth
Additional reading
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

decimal-monkeypatch-0.3.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

decimal_monkeypatch-0.3.0-py2-none-any.whl (7.9 kB view details)

Uploaded Python 2

File details

Details for the file decimal-monkeypatch-0.3.0.tar.gz.

File metadata

  • Download URL: decimal-monkeypatch-0.3.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.0 CPython/2.7.12

File hashes

Hashes for decimal-monkeypatch-0.3.0.tar.gz
Algorithm Hash digest
SHA256 dc06309b631eb8d2579f8a2f30fcaba2a672955bd1889f659b54a6d58a63f85d
MD5 50f676a6539856a900ef5de5480f0706
BLAKE2b-256 915855a759002bfb9590faad791b9708482da86319ef952a9a85cf39be08edcd

See more details on using hashes here.

File details

Details for the file decimal_monkeypatch-0.3.0-py2-none-any.whl.

File metadata

  • Download URL: decimal_monkeypatch-0.3.0-py2-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.0 CPython/2.7.12

File hashes

Hashes for decimal_monkeypatch-0.3.0-py2-none-any.whl
Algorithm Hash digest
SHA256 13a33e2c7e71b70a9a0e6db75430f0a73e4e09ddcb1963ba81304845483eb983
MD5 9e13185eca429c713c71f5171e902a9a
BLAKE2b-256 f6d526a1a26cf0d1794bd8120e5cf62bcf76df93d7f21a422e2dca611cc44cb7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page