You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/installation.rst
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,44 @@ You can use ``pip install --pre cassandra-driver`` if you need to install a beta
20
20
21
21
***Note**: if intending to use optional extensions, install the `dependencies <#optional-non-python-dependencies>`_ first. The driver may need to be reinstalled if dependencies are added after the initial installation.
22
22
23
+
Speeding Up Installation
24
+
^^^^^^^^^^^^^^^^^^^^^^^^
25
+
26
+
By default, installing the driver through ``pip`` uses Cython to compile
27
+
certain parts of the driver.
28
+
This makes those hot paths faster at runtime, but the Cython compilation
29
+
process can take a long time -- as long as 10 minutes in some environments.
30
+
31
+
In environments where performance is less important, it may be worth it to
32
+
:ref:`disable Cython as documented below <cython-extensions>`.
33
+
You can also use ``CASS_DRIVER_BUILD_CONCURRENCY`` to increase the number of
34
+
threads used to build the driver and any C extensions:
Finally, you can `build a wheel <https://packaging.python.org/tutorials/distributing-packages/#wheels>`_ from the driver's source and distribute that to computers
0 commit comments