Avoid unnecessary inject #147

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
@wtn
Contributor

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

This comment has been minimized.

Show comment
Hide comment
@sferik

sferik Mar 7, 2011

Owner

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

Owner

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