Skip to content

Avoid unnecessary inject #147

wants to merge 1 commit into from

2 participants

wtn commented Mar 7, 2011

It is recommended to avoid using inject when each iteration does not depend on a previous calculation. Using inject to populate a hash is more costly than map plus Hash[].

sferik commented Mar 7, 2011

Looks good. I appreciate all these little patches. Keep 'em coming!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.