Skip to content

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

Merged
merged 3 commits into from
Dec 20, 2018
Merged

Conversation

TomFinley
Copy link
Contributor

Fixes #1867.

@TomFinley TomFinley added the API Issues pertaining the friendly API label Dec 20, 2018
@TomFinley TomFinley added this to the 1218 milestone Dec 20, 2018
@TomFinley TomFinley self-assigned this Dec 20, 2018
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];
Copy link
Member

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?

@singlis
Copy link
Member

singlis commented Dec 20, 2018

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);
Copy link
Member

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.

Copy link
Member

@sfilipi sfilipi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@TomFinley TomFinley merged commit c54086b into dotnet:master Dec 20, 2018
@TomFinley TomFinley deleted the consolidator branch March 6, 2019 16:31
@ghost ghost locked as resolved and limited conversation to collaborators Mar 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
API Issues pertaining the friendly API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants