werben
|
83140225ed
|
Both sync.Map and cowmap use atomic.Value atomic operations to access the map during data reading, resulting in similar read performance. However, sync.Map has better write performance. Therefore, cowmap directly utilizes sync.Map as its internal structure.
|
2023-08-10 14:20:17 +08:00 |
|
werben
|
b8351ed483
|
Both sync.Map and cowmap use atomic.Value atomic operations to access the map during data reading, resulting in similar read performance. However, sync.Map has better write performance. Therefore, cowmap directly utilizes sync.Map as its internal structure.
|
2023-08-10 14:18:50 +08:00 |
|
werben
|
dafa2af423
|
add some benchmark test.
|
2023-08-08 21:08:26 +08:00 |
|
werben
|
66be82f863
|
add test cases
add test cases
|
2023-04-25 15:14:47 +08:00 |
|
werben
|
58f091fb98
|
use atmoic.Value for cowmap
use atmoic.Value for cowmap
|
2023-04-23 14:14:05 +08:00 |
|
werben
|
0dbe9e2fa8
|
add example and test cases
add example and test cases
|
2023-04-23 10:43:25 +08:00 |
|
werben
|
a8984c454a
|
rename cmap to cowmap
rename cmap to cowmap
|
2023-04-21 19:24:20 +08:00 |
|