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
作者你好!最近在下正在试图阅读理解源码,对calSlotIndex的计算方式有些疑惑: /** * Calculate slot index with the slot sequence (sequence % bufferSize) */ protected int calSlotIndex(long sequence) { return (int) (sequence & indexMask); } 如此计算出的nextIndex将是不序列递增且极易连续重复的,怎么能用于slots[nextIndex]取uid呢?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
作者你好!最近在下正在试图阅读理解源码,对calSlotIndex的计算方式有些疑惑:
/**
* Calculate slot index with the slot sequence (sequence % bufferSize)
*/
protected int calSlotIndex(long sequence) {
return (int) (sequence & indexMask);
}
如此计算出的nextIndex将是不序列递增且极易连续重复的,怎么能用于slots[nextIndex]取uid呢?
The text was updated successfully, but these errors were encountered: