I want to increase the store limit to 17 or more #1715
Unanswered
KazuhiroNomura
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
what limit would you say is reasonable? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Limit of 16 instances per Tsavorite store feels quite restrictive. Is there a roadmap to increase this capacity? I'm personally fine with potential performance overhead or non-linear scaling if the limit can be raised
` private struct InstanceIndexBuffer
{
///
/// Maximum number of concurrent instances of LightEpoch supported.
///
internal const int MaxInstances = 16;
int SelectInstance(){
for (var i = 0; i < InstanceIndexBuffer.MaxInstances; i++)
{
ref var entry = ref InstanceTracker.GetRef(i);
// Try to claim this instance ID (indicated as 1 in the entry)
if (kInvalidIndex == Interlocked.CompareExchange(ref entry, 1, kInvalidIndex))
return i;
}
throw new InvalidOperationException("Exceeded maximum number of active LightEpoch instances");
}
`
Beta Was this translation helpful? Give feedback.
All reactions