{"id":18821609,"url":"https://github.com/octu0/cmap","last_synced_at":"2026-01-18T09:30:17.338Z","repository":{"id":46721094,"uuid":"409200295","full_name":"octu0/cmap","owner":"octu0","description":"thread-safe concurrent map for go","archived":false,"fork":false,"pushed_at":"2023-03-03T08:27:38.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-12-30T03:43:13.612Z","etag":null,"topics":["concurrent-map","golang","goroutine","goroutine-safe","map","thread-safe"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/octu0/cmap","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/octu0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-22T12:43:12.000Z","updated_at":"2023-03-07T07:15:27.000Z","dependencies_parsed_at":"2024-06-21T14:19:00.661Z","dependency_job_id":"2db69f84-fb26-400e-bbba-39dfbfe0162a","html_url":"https://github.com/octu0/cmap","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octu0%2Fcmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octu0%2Fcmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octu0%2Fcmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octu0%2Fcmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/octu0","download_url":"https://codeload.github.com/octu0/cmap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239758900,"owners_count":19692041,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["concurrent-map","golang","goroutine","goroutine-safe","map","thread-safe"],"created_at":"2024-11-08T00:44:53.323Z","updated_at":"2025-02-20T01:14:32.156Z","avatar_url":"https://github.com/octu0.png","language":"Go","readme":"# cmap\n\n[![MIT License](https://img.shields.io/github/license/octu0/cmap)](https://github.com/octu0/cmap/blob/master/LICENSE)\n[![GoDoc](https://godoc.org/github.com/octu0/cmap?status.svg)](https://godoc.org/github.com/octu0/cmap)\n[![Go Report Card](https://goreportcard.com/badge/github.com/octu0/cmap)](https://goreportcard.com/report/github.com/octu0/cmap)\n[![Releases](https://img.shields.io/github/v/release/octu0/cmap)](https://github.com/octu0/cmap/releases)\n\n`cmap` is inspired by [orcaman/concurrent-map](https://github.com/orcaman/concurrent-map), with performance improvements and some usable methods, while keeping same use cases.\n\n## Installation\n\n```\n$ go get github.com/octu0/cmap\n```\n\n## Example\n\n```go\nimport \"github.com/octu0/cmap\n\nvar (\n  m = cmap.New()\n)\n\nfunc main() {\n  m.Set(\"foo\", \"bar\")\n\n  if v, ok := m.Get(\"foo\"); ok {\n    bar := v.(string)\n  }\n\n  m.Remove(\"foo\")\n}\n```\n\n## Benchmarks\n\n```\ngoos: darwin\ngoarch: amd64\npkg: github.com/octu0/cmap\ncpu: Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz\nBenchmarkCompare/ConcurrentMap-8         \t     496\t   2806827 ns/op\t  735840 B/op\t    5153 allocs/op\nBenchmarkCompare/sync.Map-8              \t     252\t   4720666 ns/op\t  852128 B/op\t   25158 allocs/op\nBenchmarkCompare/cmap-8                  \t     799\t   1506810 ns/op\t  468819 B/op\t    5011 allocs/op\nPASS\n```\n\n## License\n\nMIT, see LICENSE file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctu0%2Fcmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foctu0%2Fcmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctu0%2Fcmap/lists"}