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

Skip to content
This repository was archived by the owner on Jan 20, 2022. It is now read-only.

Conversation

@ianoc
Copy link
Collaborator

@ianoc ianoc commented Oct 19, 2015

Few relatively minor changes to improve some SB performance in scalding jobs

Copy link
Collaborator

Choose a reason for hiding this comment

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

does this need to be a lazy val? Maybe just val and not have the thread sync costs? hashCode of a Long must be really fast.

ianoc added 2 commits October 19, 2015 13:41
…tamp classes here we should just proxy them through. Calling hashcode on an Int/Long is extremely cheap (its the identity function).

Case class hash codes are different/more expensive using product iterators
Copy link
Collaborator

Choose a reason for hiding this comment

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

looks like we are always going to hit the hashCode here. Maybe drop lazy and just directly val it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure yeah makes sense

johnynek added a commit that referenced this pull request Oct 20, 2015
@johnynek johnynek merged commit df5edec into develop Oct 20, 2015
@johnynek johnynek deleted the ianoc/optimizationChanges branch October 20, 2015 18:24
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