Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

相比这个用原生Map桶化后效果差距是啥? #6

Open
Anthony-Dong opened this issue Mar 6, 2022 · 2 comments
Open

相比这个用原生Map桶化后效果差距是啥? #6

Anthony-Dong opened this issue Mar 6, 2022 · 2 comments

Comments

@Anthony-Dong
Copy link

链接: https://github.com/orcaman/concurrent-map

@heiyeluren
Copy link
Owner

性能对比cmap要好很多,原因主要是如下:

  1. xds-Xmap 内存是基于XMM内存库,性能比原生库好很多,可以参考XMM对比原生go内存管理的性能对比数据:https://github.com/heiyeluren/xmm/blob/main/docs/XMM-Benchmark.md

  2. xds-Xmap 的技术实现更复杂一些,在一些技术细节处理更好,参考设计:https://github.com/heiyeluren/xds/blob/main/docs/Xmap-Implement.md

@heiyeluren
Copy link
Owner

对于 Xds-Xmap 底层内存管理的XMM模块有疑惑,可以参考这个QA文档:
https://github.com/heiyeluren/xmm/blob/main/docs/XMM-QA.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants