Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce array allocations from merging categories #8453

Merged
merged 1 commit into from
Nov 4, 2020

Conversation

ashmaroli
Copy link
Member

  • This is a 🔨 code refactoring change.

Summary

Call set union on data["categories"] only if it is an Array instead of defaulting to a temporary empty array.

@ashmaroli ashmaroli added the memory-optimization ⚡ Reduced memory usage for the work done label Nov 4, 2020
@ashmaroli
Copy link
Member Author

Thanks :)
@jekyllbot: merge +fix

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fix frozen-due-to-age memory-optimization ⚡ Reduced memory usage for the work done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants