It's looking great and its a nice improvement.

I have a couple of suggestions:
- `ConcurrentDictionary.Count` is a [really expensive 
call](https://github.com/Microsoft/referencesource/blob/master/Microsoft.Bcl/System.Threading.Tasks.v1.5/System/Collections/Concurrent/ConcurrentDictionary.cs#L830):
 Can we use copy-on-write collections? I've implemented one here, if you'd like 
to reuse/adapt: 
https://github.com/datastax/csharp-driver/blob/master/src/Cassandra/Collections/CopyOnWriteList.cs
- To ensure that concurrent modifications to the pool don't occur, e.g., pool 
growing and closing, we could use something like a ordered task scheduler. That 
way we make sure nothing is occurring on another thread that can modify the 
internal state.

[ Full content available at: https://github.com/apache/tinkerpop/pull/1077 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to