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

请问这个高性能体现在哪里呢? #2

Closed
gwd0715 opened this issue Nov 16, 2020 · 1 comment
Closed

请问这个高性能体现在哪里呢? #2

gwd0715 opened this issue Nov 16, 2020 · 1 comment

Comments

@gwd0715
Copy link

gwd0715 commented Nov 16, 2020

看了一下源码,没有看见哪里用了并发编程呀,请问这过高性能体现在哪里呢?
还有上锁的意义是什么呢?

@lascape
Copy link
Owner

lascape commented Dec 24, 2020

我测试过并发编程的上下文成本远比锁高(可以理解下Go的并发模型),您可以自己测试下

@lascape lascape closed this as completed Jun 28, 2021
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