Skip to content

Commit 648ee72

Browse files
committed
Update README.
1 parent 50d9b69 commit 648ee72

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ This is a C-level implementation of a fast, re-entrant, optimistic lock for CPyt
55
It is a drop-in replacement for
66
`threading.RLock <https://docs.python.org/3/library/threading.html#threading.RLock>`_.
77
FastRLock is implemented in `Cython <https://cython.org>`_ and also provides a C-API
8-
for direct use from Cython code via ``from fastrlock cimport rlock``.
8+
for direct use from Cython code via ``from fastrlock cimport rlock`` or
9+
``from cython.cimports.fastrlock import rlock``.
910

10-
Under normal conditions, it is about 10x faster than threading.RLock in Python 2.7
11+
Under normal conditions, it is about 10x faster than ``threading.RLock`` in Python 2.7
1112
because it avoids all locking unless two or more threads try to acquire it at the
1213
same time. Under congestion, it is still about 10% faster than RLock due to being
1314
implemented in Cython.

0 commit comments

Comments
 (0)