chore: update set/map parallel logic

This commit is contained in:
yusing
2025-04-04 00:46:24 +08:00
parent 8e37627371
commit fdac2853af
3 changed files with 8 additions and 2 deletions

View File

@@ -11,8 +11,6 @@ type Map[KT comparable, VT any] struct {
*xsync.MapOf[KT, VT]
}
const minParallelSize = 4
func NewMapOf[KT comparable, VT any](options ...func(*xsync.MapConfig)) Map[KT, VT] {
return Map[KT, VT]{xsync.NewMapOf[KT, VT](options...)}
}