Revision 2162,
699 bytes
checked in by mattausch, 18 years ago
(diff) |
improved hash performance with google hashmap
|
Rev | Line | |
---|
[2162] | 1 | This is a C version of sparsehash (and also, maybe, densehash) that I
|
---|
| 2 | wrote way back when, and served as the inspiration for the C++
|
---|
| 3 | version. The API for the C version is much uglier than the C++,
|
---|
| 4 | because of the lack of template support. I believe the class works,
|
---|
| 5 | but I'm not convinced it's really flexible or easy enough to use.
|
---|
| 6 |
|
---|
| 7 | It would be nice to rework this C class to follow the C++ API as
|
---|
| 8 | closely as possible (eg have a set_deleted_key() instead of using a
|
---|
| 9 | #define like this code does now). I believe the code compiles and
|
---|
| 10 | runs, if anybody is interested in using it now, but it's subject to
|
---|
| 11 | major change in the future, as people work on it.
|
---|
| 12 |
|
---|
| 13 | Craig Silverstein
|
---|
| 14 | 20 March 2005
|
---|
Note: See
TracBrowser
for help on using the repository browser.