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

[Skylark] Avoid unnecessary allocations. #5656

Closed
wants to merge 1 commit into from

Conversation

ttsugriy
Copy link
Contributor

Since this happens only every single Skylark method invocation CPU and memory
usage quickly adds up and shows up on profiler samples a lot.

@dkelmer dkelmer assigned dkelmer and c-parsons and unassigned dkelmer Jul 25, 2018
@ttsugriy
Copy link
Contributor Author

@c-parsons, this change helps with memory and CPU usage, since we don't have to allocate an intermediate ImmutableList just to throw it away after putting all of its elements into builder.

Since this happens only every single Skylark method invocation CPU and memory
usage quickly adds up and shows up on profiler samples a lot.
@ttsugriy
Copy link
Contributor Author

ttsugriy commented Aug 1, 2018

rebased and resolved conflicts

Copy link
Contributor

@laurentlb laurentlb left a comment

Choose a reason for hiding this comment

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

thanks!

@bazel-io bazel-io closed this in 09cf207 Aug 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants