Skip to content

Do not create unnecessary array in IgnoreDescriptor#2183

Merged
tdreyno merged 3 commits intomiddleman:masterfrom
TheSmartnik:do_not_create_unnecessary_array
Sep 10, 2018
Merged

Do not create unnecessary array in IgnoreDescriptor#2183
tdreyno merged 3 commits intomiddleman:masterfrom
TheSmartnik:do_not_create_unnecessary_array

Conversation

@TheSmartnik
Copy link

Hi,
I was investigating some memory problems in my middleman project and found this piece of code. As ignore! mutates original object, seems unnecessary to create another array with map, each will do the same thing here without extra allocation

@tdreyno
Copy link
Member

tdreyno commented Aug 12, 2018

Looks good. Will merge after we fix Travis

@tdreyno tdreyno merged commit 6db5021 into middleman:master Sep 10, 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.

2 participants