Skip to content

Conversation

sFrenkie
Copy link

@sFrenkie sFrenkie commented May 5, 2017

This benchmark proves that get not nil values from hash is fastest with Hash#values#compact

Copy link
Member

@etagwerker etagwerker left a comment

Choose a reason for hiding this comment

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

I think this PR adds value if you keep the fastest and fast methods, but I feel like slow is doing something way different.

fast and fastest are calling a method on Array (compact vs select) but slow is calling a method on Hash and it's a little too contrived.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 participants