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
//func (l *ChannelList) Bucket(key string) *ChannelBucket idx := uint(h.Sum32()) & uint(Conf.ChannelBucket-1) //其中 ChannelBucket = runtime.NumCPU()
只有当x=2^n(n为自然数)时,a % x = a & (x - 1 )才成立, 又服务器cpu至少我见过有10核12核的
那么这里就计算出的idx会有问题吧
The text was updated successfully, but these errors were encountered:
我印象中,在配置文件里面有强制他2^n
Sorry, something went wrong.
No branches or pull requests
只有当x=2^n(n为自然数)时,a % x = a & (x - 1 )才成立,
又服务器cpu至少我见过有10核12核的
那么这里就计算出的idx会有问题吧
The text was updated successfully, but these errors were encountered: