https://github.com/0xff-dev/cmap
ConcurrentMap low版简单并发map 学习《Go并发编程》
https://github.com/0xff-dev/cmap
Last synced: 10 months ago
JSON representation
ConcurrentMap low版简单并发map 学习《Go并发编程》
- Host: GitHub
- URL: https://github.com/0xff-dev/cmap
- Owner: 0xff-dev
- Created: 2019-02-15T14:15:35.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-16T08:05:50.000Z (almost 7 years ago)
- Last Synced: 2025-02-02T08:27:38.513Z (11 months ago)
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CMap
ConcurrentMap
### 简单介绍
> `cmap` 是首先分段锁的一个并发map, `Pair` 定义了映射, 使用`bucket` 实现了链表的操作
> 最后用`segment` 定义了多个`bucket`, 分段并发, 想要遍历也是很简单的, 了解她的基本
> `[ [ linkPair]bucket]Segment`