We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
看了下代码, Pool是用slice来装workers, 但Pool的操作中,除了purge和release中需要遍历workers, getWorker和putWorker 都是对队尾出队入队的操作, 是否可以考虑用 container/list ? (假设,还没验证)。
另外还有个问题, 在putWokers时有个append操作, 这里是不是可以在NewPool时, 给workers slice 预分配一些空间呢?
The text was updated successfully, but these errors were encountered:
container/list 这个我可以替换测试下 🛩
container/list
Sorry, something went wrong.
链表的性能会比较好吗?我没测试过,你可以改一下测一下,如果性能的确有提升可以提个PR
Successfully merging a pull request may close this issue.
看了下代码, Pool是用slice来装workers, 但Pool的操作中,除了purge和release中需要遍历workers, getWorker和putWorker 都是对队尾出队入队的操作, 是否可以考虑用 container/list ? (假设,还没验证)。
另外还有个问题, 在putWokers时有个append操作, 这里是不是可以在NewPool时, 给workers slice 预分配一些空间呢?
The text was updated successfully, but these errors were encountered: