在 v0.3.0 之后,在上下文池中性能下降
作者: adriantam创建于 2025年9月18日更新于 2025年12月12日
我们的项目使用上下文池 (带有 WithContext(), WithCancelOnError(), WithFirstError() 和 WithMaxGoroutines())。从 v0.3.0 升级到 5f936ab 后,我们发现性能下降 (CPU 显著增加)。通常的模式包括 pool.New(), pool.Go() 和 pool.Wait() 等,并具有高并发性。
内容来源: sourcegraph/conc