Skip to main content

discord-ext-speedups

Cython speedups for various parts of discord.py

Installation

pip install discord-ext-speedups

Usage

import discord
from discord.ext import speedups
speedups.install()

This monkeypatches all available C extensions into discord.py, replacing the existing ones. This is best done immediately after import discord. To only install specific patches, pass the names to install(). For more info, see the reference section below.

To revert patches, simply call speedups.uninstall() to restore all modules to normal. This function also takes specific module names as arguments. Note: You should probably avoid doing this while you're using the modules or objects this library alters.

Available patches

copus

Cython bindings for libopus. This was written as an experiment in cython and doesn't produce that much of a speedup. A benchmark indicated a 10% speedup of Encoder.encode(), but this also works out to a mere 0.5% of the total time window for this call (20ms/frame).

Reference

install(*install_modules, ignore=False)

Patches in replacement modules.

  • *install_modules (str)

    Module names to install. The list of available module names can be found above, or by calling get_available_patches().

  • ignore (bool)

    If True, install all available modules except the given modules.

Returns a list[str] of module names.

uninstall(*uninstall_modules, ignore=False)

Undo patching and restore the original modules.

  • *uninstall_modules (str)

    Modules names to uninstall. The list of installed module names can be found by calling get_installed_patches().

  • ignore (bool)

    If True, uninstall all available modules except the given modules.

get_available_patches()

Returns a tuple[str] of available module names.

get_installed_patches()

Returns a tuple[str] of installed module names.

Requirements

  • Python 3.6.4+
  • discord.py

Compiling from source requires:

  • cython 0.27.3

Release files for discord-ext-speedups 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for discord-ext-speedups 0.0.1
File
discord_ext_speedups-0.0.1-py3.7-win-amd64.egg Legacy Egg format - - Details
discord_ext_speedups-0.0.1-py3.7-win32.egg Legacy Egg format - - Details
discord_ext_speedups-0.0.1-py3.7-linux-x86_64.egg Legacy Egg format - - Details
discord_ext_speedups-0.0.1-py3.6-win-amd64.egg Legacy Egg format - - Details
discord_ext_speedups-0.0.1-py3.6-win32.egg Legacy Egg format - - Details
discord_ext_speedups-0.0.1-py3.6-linux-x86_64.egg Legacy Egg format - - Details
discord_ext_speedups-0.0.1-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details
discord_ext_speedups-0.0.1-cp37-cp37m-win32.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-32 Details
discord_ext_speedups-0.0.1-cp37-cp37m-manylinux2010_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64 Details
discord_ext_speedups-0.0.1-cp37-cp37m-manylinux1_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64 Details
discord_ext_speedups-0.0.1-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details
discord_ext_speedups-0.0.1-cp36-cp36m-win32.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-32 Details
discord_ext_speedups-0.0.1-cp36-cp36m-manylinux2010_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64 Details
discord_ext_speedups-0.0.1-cp36-cp36m-manylinux1_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 Details

Total release size: 3.5 MB

Release files / discord_ext_speedups-0.0.1-py3.7-win-amd64.egg

Download URL discord_ext_speedups-0.0.1-py3.7-win-amd64.egg
Size 219.4 kB
Tags Egg
SHA-256 checksum
How to use checksums
523c03593913e98068babf8195bfc0e0e4732db4bf8803b39028a43d8bc50a0f
BLAKE2b-256 checksum
How to use checksums
9fd88b17ed2dce970834a7ee7323e14f9e484a5518bf13dd8f2ce98d8dfd3e51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Release files / discord_ext_speedups-0.0.1-py3.7-win32.egg

Download URL discord_ext_speedups-0.0.1-py3.7-win32.egg
Size 168.9 kB
Tags Egg
SHA-256 checksum
How to use checksums
960e209a378caab9f00e632b73246e6409bda96f773ece357ebee6b7c2d37d4f
BLAKE2b-256 checksum
How to use checksums
6b4c49cd165809bd07a25b4108f51cc6c17c2cce0159d19ba32a428c0cfe9a77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Release files / discord_ext_speedups-0.0.1-py3.7-linux-x86_64.egg

Download URL discord_ext_speedups-0.0.1-py3.7-linux-x86_64.egg
Size 204.4 kB
Tags Egg
SHA-256 checksum
How to use checksums
6a501548afa2c551ee72f41e5d49439d91d1789a161db03c00b63cddccb2dc14
BLAKE2b-256 checksum
How to use checksums
87dcf506b3ae4674810cdc308989de2dbd78e0f9e41d707411c0121ec1faf108
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Release files / discord_ext_speedups-0.0.1-py3.6-win-amd64.egg

Download URL discord_ext_speedups-0.0.1-py3.6-win-amd64.egg
Size 219.2 kB
Tags Egg
SHA-256 checksum
How to use checksums
468b6d6a394ad6abda9e41cdb36b6830ba3ba9dd52b79f10473b5fce46e361aa
BLAKE2b-256 checksum
How to use checksums
f01398d03672a4480cc3295460a3d06ab07d4da3e0de0ff7e75aa792f5aed3b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Release files / discord_ext_speedups-0.0.1-py3.6-win32.egg

Download URL discord_ext_speedups-0.0.1-py3.6-win32.egg
Size 168.9 kB
Tags Egg
SHA-256 checksum
How to use checksums
6c961f7143eacc686bcdf1b7db54a48c2dce6baadeaf35f3b927bf7c19d8f985
BLAKE2b-256 checksum
How to use checksums
baf78e0f91c4b670e15e60e368ffbdfbb87adf186ef1b3ca1bb3a3200e98299a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Release files / discord_ext_speedups-0.0.1-py3.6-linux-x86_64.egg

Download URL discord_ext_speedups-0.0.1-py3.6-linux-x86_64.egg
Size 206.7 kB
Tags Egg
SHA-256 checksum
How to use checksums
4e48216a6a5340c25e0e6f5a2b3b20c46308aaf879de3b5494e5cb4b35519b90
BLAKE2b-256 checksum
How to use checksums
475cb34070361007704dad61d8d2b99b9e79420e962bcc0e855996ad5786f840
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Release files / discord_ext_speedups-0.0.1-cp37-cp37m-win_amd64.whl

Download URL discord_ext_speedups-0.0.1-cp37-cp37m-win_amd64.whl
Size 215.3 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
3ed4abdc0c7becd9a196d0d6cbdb866331faf4d97c5495b990fc5a23b834195b
BLAKE2b-256 checksum
How to use checksums
590048767d9a8add6da5d423c235692c7cdb90d6f9e92c1dd3556013372fce18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Release files / discord_ext_speedups-0.0.1-cp37-cp37m-win32.whl

Download URL discord_ext_speedups-0.0.1-cp37-cp37m-win32.whl
Size 164.8 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
e69cb9ac10f8ebdeeaabb5aece8e9b72af6b9873ab8a0fa113b1f1f262e8d93b
BLAKE2b-256 checksum
How to use checksums
0d2d9e285a3a2b68fa6d4c2a8b2df9ca0ee3a37ad49e4de4371f3219ad0081ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Release files / discord_ext_speedups-0.0.1-cp37-cp37m-manylinux2010_x86_64.whl

Download URL discord_ext_speedups-0.0.1-cp37-cp37m-manylinux2010_x86_64.whl
Size 391.6 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
5f5bc7b881c9b65d0ebf7a79073d48bfb6a9f534557800e63b6b3cfc6744e48e
BLAKE2b-256 checksum
How to use checksums
bb2f4438007548eb5d9deac0a7427b546a97427cb7404ed44ca595aa56ce2508
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Release files / discord_ext_speedups-0.0.1-cp37-cp37m-manylinux1_x86_64.whl

Download URL discord_ext_speedups-0.0.1-cp37-cp37m-manylinux1_x86_64.whl
Size 391.6 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
a26aa201337ce209f2fadb786547354543e47f912330c7d70d373538f274203f
BLAKE2b-256 checksum
How to use checksums
de1d3820503d6457fb2e17054efc17ac9f0d9236b942287e6e6f1f8d828b71e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Release files / discord_ext_speedups-0.0.1-cp36-cp36m-win_amd64.whl

Download URL discord_ext_speedups-0.0.1-cp36-cp36m-win_amd64.whl
Size 215.1 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
c955c3e67bb634927b8faf12564a2e7882ea2d82f1122a52aa10c5211084337a
BLAKE2b-256 checksum
How to use checksums
fe29e8192e1cb83c16989a4f4712b7e14a834aa644f154c5652b009539c8d7e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Release files / discord_ext_speedups-0.0.1-cp36-cp36m-win32.whl

Download URL discord_ext_speedups-0.0.1-cp36-cp36m-win32.whl
Size 164.8 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
e0de59249914c509a2a981986dd3b96668e7a1f4fbd2bfd7d9610f9c9842da1b
BLAKE2b-256 checksum
How to use checksums
bb0c7fc61558b20de5952b32b7185e582dc9e65f9bc8a56b36fe25ce1ffc3642
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Release files / discord_ext_speedups-0.0.1-cp36-cp36m-manylinux2010_x86_64.whl

Download URL discord_ext_speedups-0.0.1-cp36-cp36m-manylinux2010_x86_64.whl
Size 394.0 kB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
b4810f7a62a56f626cf5ac783970a27694aacea9f525c4a9c2870f48d8abc5e8
BLAKE2b-256 checksum
How to use checksums
559ca6b3739b0aac5d6b4134b1222d13cbacb51f21a20c00b547aa917b6d8759
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Release files / discord_ext_speedups-0.0.1-cp36-cp36m-manylinux1_x86_64.whl

Download URL discord_ext_speedups-0.0.1-cp36-cp36m-manylinux1_x86_64.whl
Size 394.0 kB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
e51af22c7d7b7dfb63ffecbc4fa5c03559511d8d821de3230010892cde846996
BLAKE2b-256 checksum
How to use checksums
00bdc1718138ecef5e97ad341b6413727478372b31d02d5018613db4bbdcc18d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Release history Release notifications | RSS feed

This release

0.0.1 This release

14 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page