Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@johnynek
Copy link
Collaborator

This function was appending to a list, which is an O(N) operation in a loop. In the end, we only want a set, so the order does not matter. So, I changed to prepending, which is O(1), and then calling toSet at the end.

@cchepelov I think you wrote some of this stuff originally. I'm trying to understand the rules we need to follow to make sure cascading3 does not throw at plan time.

I'm still seeing some exceptions in our generative testing in some cases. Where did you learn the rules? Trial and error?

cc @cwensel

@cchepelov
Copy link
Contributor

Good catch!

I… clearly get some blame for this in https://github.com/twitter/scalding/blame/cascading3/scalding-core/src/main/scala/com/twitter/scalding/RichPipe.scala#L150 but I don't remember.

Trial & error for sure, and most certainly not tried at all with MAPREDUCE (is anyone still using that ? ;) )

@piyushnarang
Copy link
Collaborator

👍

@johnynek johnynek merged commit 4514905 into cascading3 Jan 31, 2018
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.

4 participants