-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Remove IRowCursorConsolidator. #1938
New issue
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
Conversation
const int toConsumeBound = 4; | ||
var toConsume = new BlockingCollection<Batch>(toConsumeBound); | ||
var batchColumnPool = new MadeObjectPool<BatchColumn[]>(() => new BatchColumn[outPipes.Length]); | ||
Thread[] workers = new Thread[inputs.Length]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So threads are used here, can the cursor set be large? Like in the hundreds for example? If so, would tasks be a better alternative?
Looks good to me - I didnt quite follow the "Scott document review". |
|
||
if (inputs.Length == 1) | ||
curs = inputs[0]; | ||
else | ||
curs = consolidator.CreateCursor(host, inputs); | ||
curs = DataViewUtils.ConsolidateGeneric(host, inputs, 64); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
64 [](start = 70, length = 2)
maybe have a comment for why 64.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f031f43
to
36c5b98
Compare
Fixes #1867.