Skip to content

Instantly share code, notes, and snippets.

@ayende
Created October 11, 2019 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayende/ea331f2db8568a4dbdee054fceaef1ea to your computer and use it in GitHub Desktop.
Save ayende/ea331f2db8568a4dbdee054fceaef1ea to your computer and use it in GitHub Desktop.
var docs = new ConcurrentDictionary<long, DocRef>();
long index = 0;
var fields = new ConcurrentDictionary<string, ConcurrentQueue<long>>[]
{
new ConcurrentDictionary<string, ConcurrentQueue<long>>(), // Body
new ConcurrentDictionary<string, ConcurrentQueue<long>>(), // Subject
new ConcurrentDictionary<string, ConcurrentQueue<long>>(), // Date
new ConcurrentDictionary<string, ConcurrentQueue<long>>(), // From
new ConcurrentDictionary<string, ConcurrentQueue<long>>(), // To
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment