久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

超高性能C/C++哈希映射(表、字典)

Super high performance C/C++ hash map (table, dictionary)(超高性能C/C++哈希映射(表、字典))
本文介紹了超高性能C/C++哈希映射(表、字典)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我需要將原始鍵(int,可能是 long)映射到高性能哈希映射數據結構中的結構值.

I need to map primitive keys (int, maybe long) to struct values in a high-performance hash map data structure.

我的程序會有幾百張這樣的地圖,而每張地圖一般最多只有幾千個條目.但是,地圖會不斷刷新"或攪動";想象一下,每秒處理數百萬條 adddelete 消息.

My program will have a few hundred of these maps, and each map will generally have at most a few thousand entries. However, the maps will be "refreshing" or "churning" constantly; imagine processing millions of add and delete messages a second.

C 或 C++ 中的哪些庫具有適合此用例的數據結構?或者,您會如何推薦自己構建?謝謝!

What libraries in C or C++ have a data structure that fits this use case? Or, how would you recommend building your own? Thanks!

推薦答案

我建議你試試 Google SparseHash(或 C11 版本 Google SparseHash-c11)并查看它是否適合您的需求.它們具有內存高效的實現方式以及針對速度進行了優化的實現方式.我很久以前做過一個基準測試,它是速度方面最好的哈希表實現(但也有缺點).

I would recommend you to try Google SparseHash (or the C11 version Google SparseHash-c11) and see if it suits your needs. They have a memory efficient implementation as well as one optimized for speed. I did a benchmark a long time ago, it was the best hashtable implementation available in terms of speed (however with drawbacks).

這篇關于超高性能C/C++哈希映射(表、字典)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Assertion failed (size.widthgt;0 amp;amp; size.heightgt;0)(斷言失敗(size.width0 amp;amp; size.height0))
Rotate an image in C++ without using OpenCV functions(在 C++ 中旋轉圖像而不使用 OpenCV 函數)
OpenCV: process every frame(OpenCV:處理每一幀)
Why can#39;t I open avi video in openCV?(為什么我不能在 openCV 中打開 avi 視頻?)
OpenCV unable to set up SVM Parameters(OpenCV 無法設置 SVM 參數)
Convert a single color with cvtColor(使用 cvtColor 轉換單一顏色)
主站蜘蛛池模板: 成人免费毛片片v | 亚洲三级免费 | 97国产在线| 精品一区在线播放 | 99热视 | 欧美日韩在线精品 | 国产成人精品亚洲 | 国产成人午夜精品 | av片在线免费观看 | 成年人av | 日本看片网站 | 亚洲色欧美 | 国产精品理论片 | 国产欧美精品一区二区色综合 | 日日干日日 | 久久视频一区二区 | 国产福利在线 | 黄色一级大片在线免费看国产一 | 国产区在线观看 | 天天爱天天操 | 中文字幕在线观看一区二区 | 日韩综合久久 | 午夜国产在线 | 亚洲免费观看视频 | 黄色av观看 | 精品久久一区 | 在线精品一区 | 国产精品区二区三区日本 | 九九九精品视频 | 亚洲欧美精品一区二区 | 国产福利91 | 国产在线日韩 | 99色综合| 欧美久久精品 | 国产h视频在线观看 | 在线观看小视频 | 日韩有码在线观看 | 黄色大毛片 | 亚洲精品91天天久久人人 | 精品在线看 | 深夜福利在线播放 |