@@ -4,15 +4,10 @@ igbinary
4
4
Igbinary is a drop in replacement for the standard php serializer. Instead of
5
5
time and space consuming textual representation, igbinary stores php data
6
6
structures in a compact binary form. Savings are significant when using
7
- memcached or similar memory based storages for serialized data. You can
8
- expect about 50% reduction in storage requirement and speed is at least on par
9
- with the standard PHP serializer. Specific numbers depend on your data, of
10
- course.
11
-
12
- But where does the name "igbinary" come from? There was once a similar project
13
- called fbinary but it has disappeared from the Internet a long time ago. Its
14
- architecture wasn't particularly clean either. IG is an abbreviation for a
15
- finnish social networking site IRC-Galleria (http://irc-galleria.net/)
7
+ memcached or similar memory based storages for serialized data. About 50%
8
+ reduction in storage requirement can be expected. Specific number depends on
9
+ your data. (Un)serialization performance is at least on par with the standard
10
+ PHP serializer.
16
11
17
12
Features
18
13
--------
@@ -70,41 +65,50 @@ Installing
70
65
----------
71
66
72
67
Note:
73
- Sometimes you may have to substitute phpize with phpize5.
74
- In such cases you probably should add "--with-php-config=.../php-config5" as
75
- an option to configure script.
68
+ Sometimes phpize must be substituted with phpize5. In such cases the following
69
+ option must be given to configure script: "--with-php-config=.../php-config5"
76
70
77
71
Compiling:
78
72
79
73
1. phpize
80
74
81
- If you use GCC:
75
+ With GCC:
82
76
2. ./configure CFLAGS="-O2 -g" --enable-igbinary
83
77
84
- If you use ICC (Intel C Compiler)
78
+ With ICC (Intel C Compiler)
85
79
2. ./configure CFLAGS=" -no-prec-div -O3 -xO -unroll2 -g" CC=icc --enable-igbinary
86
80
87
81
3. make
88
- 4. ( make test)
82
+ 4. ( make test )
89
83
5. make install
90
- 6. igbinary.so is installed in the default extensions directory
84
+ 6. igbinary.so is installed to the default extension directory
91
85
92
86
Bugs & Contributions
93
87
--------------------
94
88
95
- To report bugs or to contribute fixes and improvements send email to
96
- opensource@dynamoid. com
89
+ Mailing list for bug reports and other development discussion can be found
90
+ at http://groups.google. com/group/igbinary
97
91
98
- You can also fork at GitHub: http://github.com/dynamoid/igbinary
92
+ The preferred ways for contributions are pull requests and email patches
93
+ (in git format). Feel free to fork at http://github.com/dynamoid/igbinary
99
94
100
95
Utilizing in other extensions
101
96
-----------------------------
102
97
103
- You can call igbinary from other extensions fairly easily. Igbinary installs its
104
- header file to ext/igbinary/igbinary.h. There are just two straighforward
98
+ Igbinary can be called from other extensions fairly easily. Igbinary installs
99
+ its header file to ext/igbinary/igbinary.h. There are just two straighforward
105
100
functions: igbinary_serialize and igbinary_unserialize. Look at igbinary.h for
106
101
prototypes and usage.
107
102
108
103
Add PHP_ADD_EXTENSION_DEP(yourextension, igbinary) to your config.m4 in case
109
104
someone wants to compile both of them statically into php.
110
105
106
+ Trivia
107
+ ------
108
+
109
+ Where does the name "igbinary" come from? There was once a similar project
110
+ called fbinary but it has disappeared from the Internet a long time ago. Its
111
+ architecture wasn't particularly clean either. IG is an abbreviation for a
112
+ finnish social networking site IRC-Galleria (http://irc-galleria.net/)
113
+
114
+
0 commit comments