Skip to content
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

Avoid iterating seq multiple times in Frame.ofRecords #406

Merged
merged 1 commit into from
Mar 21, 2019
Merged

Avoid iterating seq multiple times in Frame.ofRecords #406

merged 1 commit into from
Mar 21, 2019

Conversation

zyzhu
Copy link
Contributor

@zyzhu zyzhu commented Aug 8, 2018

I would like to address the issue #364

I simply converted seq into array to avoid Frame.ofRecords iterating seq multiple times. It avoids creating frame unintended by user. I also added a test cases using the sample in issue 364.

@tpetricek Are you ok with this temporary allocation?

@zyzhu zyzhu requested a review from tpetricek August 8, 2018 00:49
@zyzhu
Copy link
Contributor Author

zyzhu commented Aug 14, 2018

@tpetricek I wonder what's the impact of my converting data to array in Frame.ofRecords. Will it affect project such as BigDeedle? Is there a better way of doing this? I want to find a middle ground to make result deterministic but not penalizing lazy loading too much.

@zyzhu zyzhu merged commit 3d055db into fslaborg:master Mar 21, 2019
@zyzhu zyzhu deleted the issue-364 branch April 18, 2019 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant