@@ -10,27 +10,12 @@ Dependencies
1010
1111* cramjam
1212
13- * crc32c
13+ * Supports Python >=3.8
1414
15- * Supports Python 3
15+ Install
16+ =======
1617
17- Build & Install
18- ===============
19-
20- Build:
21-
22- ::
23-
24- python setup.py build
25-
26- Install:
27-
28- ::
29-
30- python setup.py install
31-
32-
33- Or install it from PyPi:
18+ Install it from PyPi:
3419
3520::
3621
@@ -50,35 +35,7 @@ Run tests
5035Benchmarks
5136==========
5237
53- *snappy vs. zlib *
54-
55- **Compressing: **
56-
57- ::
58-
59- %timeit zlib.compress("hola mundo cruel!")
60- 100000 loops, best of 3: 9.64 us per loop
61-
62- %timeit snappy.compress("hola mundo cruel!")
63- 1000000 loops, best of 3: 849 ns per loop
64-
65- **Snappy ** is **11 times faster ** than zlib when compressing
66-
67- **Uncompressing: **
68-
69- ::
70-
71- r = snappy.compress("hola mundo cruel!")
72-
73- %timeit snappy.uncompress(r)
74- 1000000 loops, best of 3: 755 ns per loop
75-
76- r = zlib.compress("hola mundo cruel!")
77-
78- %timeit zlib.decompress(r)
79- 1000000 loops, best of 3: 1.11 us per loop
80-
81- **Snappy ** is **twice ** as fast as zlib
38+ See ``cramjam `` for speed tests.
8239
8340Commandline usage
8441=================
@@ -108,30 +65,4 @@ You can get help by running
10865
10966
11067Snappy - compression library from Google (c)
111- http://google.github.io/snappy
112-
113- Frequently Asked Questions
114- ==========================
115-
116- **How to install it on Mac OS X? **
117-
118- It has been reported a few times (Issue #7 and #23) that it can't be installed correctly the library in Mac.
119- The procedure should be,
120-
121- ::
122-
123- $ brew install snappy # snappy library from Google
124- $ CPPFLAGS="-I/usr/local/include -L/usr/local/lib" pip install python-snappy
125-
126- Try this command if libstdc++ is deprecated
127-
128- ::
129-
130- $ CPPFLAGS="-I/usr/local/include -L/usr/local/lib -stdlib=libc++ " pip install python-snappy
131-
132-
133- Or this command in Apple Silicon:
134-
135- ::
136-
137- $ CPPFLAGS="-I/opt/homebrew/include -L/opt/homebrew/lib" pip install python-snappy
68+ http://google.github.io/snappy
0 commit comments