New extension: chdb
[email protected] (Lorenzo Castelli) Fri, 4 Jun 2010 14:52:24 +0200
| Newsgroups | php.pecl.dev |
|---|---|
| Message-ID | <1275655944.1825.54.camel@lorenzo-laptop> |
Hi, I would like to present an extension we have developed at Hyves (www.hyves.nl) as a faster alternative to defining large amount of constant data in PHP. chdb (constant hash database - http://github.com/lcastelli/chdb) provides a read-only hashtable that can be stored in a file and memory-mapped into PHP processes. By using a memory-mapped file, sharing across multiple PHP process and on-demand loading of pages are automatically provided by the operative system. chdb also uses a perfect hash function for indexing the hashtable, provided by cmph (http://cmph.sourceforge.net/). chdb is licensed under the 3-clause BSD license, while cmph (which is a dependency) is dual-licensed under the LGPL and MPL 1.1. We think this extension might be useful for other people outside of Hyves as well, and publishing this in PECL can make it more visible. Thus this is a request for comment for a possible inclusion in the repository. Lorenzo Castelli