Discussion:
Is there a hashmap library in C?
(too old to reply)
endysun
2008-04-19 13:56:32 UTC
Permalink
not C++.

Thanks.
Christof Meerwald
2008-04-19 17:12:19 UTC
Permalink
Post by endysun
not C++.
glib, see http://library.gnome.org/devel/glib/stable/glib-Hash-Tables.html


Christof
--
http://cmeerw.org sip:cmeerw at cmeerw.org
mailto:cmeerw at cmeerw.org xmpp:cmeerw at cmeerw.org
p***@gmail.com
2015-04-02 01:35:36 UTC
Permalink
在 2008年4月19日星期六 UTC+8下午9:56:32,endysun写道:
Post by endysun
not C++.
Thanks.
The core of the core of the big data solutions -- Map
Download:
https://sourceforge.net/projects/pwwhashmap/files
Marcin Załęczny
2015-04-05 16:33:29 UTC
Permalink
Post by p***@gmail.com
在 2008年4月19日星期六 UTC+8下午9:56:32,endysun写道:
Post by endysun
not C++.
Thanks.
The core of the core of the big data solutions -- Map
https://sourceforge.net/projects/pwwhashmap/files
Take also a look at glib (http://en.wikipedia.org/wiki/GLib).
The component you need is GHashTable:
https://developer.gnome.org/glib/stable/glib-Hash-Tables.html
Wenwei Peng
2015-05-05 08:30:04 UTC
Permalink
Work to do a good job, must first sharpen his tools.

Hi
My English is not good and if there is a syntax error, Keep the jokes clean please!
Welcome to my space:
http://sourceforge.net/p/pwwhashmap/discussion/general/

Title: The core of the core of the big data solutions -- Map
Author: pengwenwei
Email: wenwei19710430
Language: c++
Platform: Windows, linux
Technology: Perfect hash algorithm
Level: Advanced
Description: Map algorithm with high performance
Section MFC c++ map stl
SubSection c++ algorithm
License: (GPLv3)

Download demo project - 1070 Kb
Download source - 1070 Kb

Introduction:
For the c++ program, map is used everywhere.And bottleneck of program performance is often the performance of map.Especially in the case of large data,and the business association closely and unable to realize the data distribution and parallel processing condition.So the performance of map becomes the key technology.

In the work experience with telecommunications industry and the information security industry, I was dealing with the big bottom data,especially the most complex information security industry data,all can't do without map.

For example, IP table, MAC table, telephone number list, domain name resolution table, ID number table query, the Trojan horse virus characteristic code of cloud killing etc..

The map of STL library using binary chop, its has the worst performance.Google Hash map has the optimal performance and memory at present, but it has repeated collision probability.Now the big data rarely use a collision probability map,especially relating to fees, can't be wrong.

Now I put my algorithms out here,there are three kinds of map,after the build is Hash map.We can test the comparison,my algorithm has the zero probability of collision,but its performance is also better than the hash algorithm, even its ordinary performance has no much difference with Google.

My algorithm is perfect hash algorithm,its key index and the principle of compression algorithm is out of the ordinary,the most important is a completely different structure,so the key index compression is fundamentally different.The most direct benefit for program is that for the original map need ten servers for solutions but now I only need one server.
Declare: the code can not be used for commercial purposes, if for commercial applications,you can contact me with QQ 75293192.
Download:
https://sourceforge.net/projects/pwwhashmap/files


Background to this article that may be useful such as an introduction to the basic ideas presented:
http://blog.csdn.net/chixinmuzi/article/details/1727195


Development Manual:
Three different map algorithm, used in different application scenarios.
1,memMap: Based on memory No hard disk consumption.
2,diskMap: Based on the hard disk No memory consumption.
3,hashMap: No delete function, but the best performance.
memMap and diskMap can turn to hashMap by memMap2HashMap and diskMap2HashMap.

In addition,Provide Google HashMap for comparative test.
Algorithm of Google,the performance is not good, but also has the collision probability .
l***@ansync.com
2018-03-07 23:28:41 UTC
Permalink
Post by endysun
not C++.
Thanks.
I like the Judy arrays stuff, personally. There's also Uthash and Glib.
Loading...