求 MurmurHash3 c# 代码
相关推荐
MurMurHash3:MurMurHash3算法的纯C#实现
MurMurHash3 MurMurHash3算法的纯C#实现。
MurmurHash64B c#版
这是MurmurHash算法,由c++改成c#版本。使用它在生500万内生成64位的数字,也是会出现碰撞的。在实际开发转,可能需要将不定长的数符中转生数字,想转生64位唯一数字的话。可以用md5算法生成16位的字节,再用MurmurHash算法转生一个数字。经测试,在2500万内随机字符串转成的数字,没有发生碰撞。这个办法可以满足需要。 public static ulong MakeNumber(string source) { var mk = new System.Security.Cryptography.MD5CryptoServiceProvider(); byte[] bytes = System.Text.Encoding.Default.GetBytes(source); bytes = mk.ComputeHash(bytes); mk.Clear(); return MurmurHash64B.MakeHashValue(bytes); }
HashDepot:.NET库,用于xxHash,FNV,MurmurHash3和SipHash算法
HashDepot 我一直在实现.NET框架中缺少的各种哈希函数。 我决定将它们融合到一个库中。 我的主要目标是提供经过测试和高性能的实现。 该库当前支持 , , 和 。 要将其安装在NuGet上: Install-Package HashDepot 支持的哈希算法 我尝试添加任何不在C#运行时中并且很流行的东西。 例如,C#有多个xxHash实现,但是它们在API复杂性和性能方面有所不同。 尽管我没有尝试过SIMD优化,但是现有代码相当快。 xx哈希 这个自称是最快的哈希函数之一,而且实际上是惊人的。 即使没有任何SIMD优化,它的性能也要好于一切,甚至是简单的校验和也只有2倍。 该实现假定使用少字节序的机器。 用法示例: var buffer = Encoding . UTF8 . GetBytes ( " some string " ); uint result =
在C#中有效地使用列表作为字典键
一种将列表用作字典键的相对安全,简单但高性能的技术。
BobBuilder_app
Twitter Digg Facebook Del.icio.us Reddit Stumbleupon Newsvine Technorati Mr. Wong Yahoo! Google Windows Live Send as Email Add to your CodeProject bookmarks Discuss this article 85 Print Article Database » Database » Other databasesLicence CPOL First Posted 19 Jan 2012 Views 24,219 Downloads 992 Bookmarked 74 times RaptorDB - The Key Value Store V2 By Mehdi Gholam | 8 Mar 2012 | Unedited contribution C#.NETDBABeginnerIntermediateAdvanceddatabase Even faster Key/Value store nosql embedded database engine utilizing the new MGIndex data structure with MurMur2 Hashing and WAH Bitmap indexes for duplicates. See Also More like this More by this author Article Browse Code Stats Revisions (8) Alternatives 4.95 (56 votes) 1 2 3 4 5 4.95/5 - 56 votes μ 4.95, σa 1.05 [?] Is your email address OK? You are signed up for our newsletters but your email address is either unconfirmed, or has not been reconfirmed in a long time. Please click here to have a confirmation email sent so we can confirm your email address and start sending you newsletters again. Alternatively, you can update your subscriptions. Add your own alternative version Introduction What is RaptorDB? Features Why another data structure? The problem with a b+tree Requirements of a good index structure The MGIndex Page Splits Interesting side effects of MGIndex The road not taken / the road taken and doubled back! Performance Tests Comparing B+tree and MGIndex Really big data sets! Index parameter tuning Performance Tests - v2.3 Using the Code Differences to v1 Using RaptorDBString and RaptorDBGuid Global parameters RaptorDB interface Non-clean shutdowns Removing Keys Unit tests File Formats File Format : *.mgdat File Format : *.mgbmp File Format : *.mgidx File Format : *.mgbmr , *.mgrec History Download RaptorDB_v2.0.zip - 38.7 KB Download RaptorDB_v2.1.zip - 39 KB Download RaptorDB_v2.2.zip - 39 KB Download RaptorDB_v2.3.zip - 39.6 KB D


非技术区
