Skip to content

Conversation

@wschin
Copy link
Member

@wschin wschin commented Nov 14, 2018

Fixes #1531. In most cases, the GetRowCount is as lazy as before but in some places such as CacheDataView in CacheDataView.cs, it could need more than O(1) time to wait until the actual number of rows is available.

@wschin wschin self-assigned this Nov 14, 2018
@wschin wschin changed the title [WIP] Remove lazy parameters for GetRowCount Remove lazy parameters for GetRowCount Nov 14, 2018
Copy link
Contributor

@Zruty0 Zruty0 left a comment

Choose a reason for hiding this comment

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

:shipit:

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:

@sfilipi
Copy link
Member

sfilipi commented Nov 15, 2018

    }

nit: => null;


Refers to: src/Microsoft.ML.Transforms/GroupTransform.cs:154 in 4c3cbac. [](commit_id = 4c3cbac, deletion_comment = False)

public override long? GetRowCount()
{
return _transform.GetRowCount(lazy);
return _transform.GetRowCount();
Copy link
Member

Choose a reason for hiding this comment

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

return [](start = 15, length = 7)

prefer => to full bodied for one liners.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'd like to keep change as small as possible. Maybe you can create another issue so that someone will fix it?

@wschin wschin merged commit 8a45f37 into dotnet:master Nov 15, 2018
@wschin wschin deleted the remove-lazy branch November 15, 2018 17:33
@ghost ghost locked as resolved and limited conversation to collaborators Mar 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants