Skip to content

Commit

Permalink
limit chain state cursor count to processor count
Browse files Browse the repository at this point in the history
  • Loading branch information
User1785604260 committed Jan 24, 2016
1 parent 5fb3213 commit cf6bf0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BitSharp.Core/Domain/ChainState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ internal class ChainState : IChainState

public ChainState(Chain chain, IStorageManager storageManager)
{
CursorCount = 32;
CursorCount = Environment.ProcessorCount;
Chain = chain;

// create a cache of cursors that are in an open snapshot transaction with the current chain state
Expand Down

0 comments on commit cf6bf0f

Please sign in to comment.