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

refactor(js_formatter): reduce copy by taking ownership in needs_parentheses_with_parent #3526

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

Conaclos
Copy link
Member

Summary

This is a minor refactoring that reduces node cloning by taking ownership of parent in needs_parentheses_with_parent

Test Plan

CI must pass

@github-actions github-actions bot added A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages labels Jul 26, 2024
@Conaclos Conaclos force-pushed the conaclos/needs-parens-tweak-ownerhip branch from dd53982 to 76f967b Compare July 26, 2024 11:18
@Conaclos Conaclos changed the title refactor: reduce copy by taking ownership in needs_parentheses_with_parent refactor(js_formatter): reduce copy by taking ownership in needs_parentheses_with_parent Jul 26, 2024
@Conaclos Conaclos merged commit b468cd5 into main Jul 26, 2024
15 checks passed
@Conaclos Conaclos deleted the conaclos/needs-parens-tweak-ownerhip branch July 26, 2024 11:38
Copy link

codspeed-hq bot commented Jul 26, 2024

CodSpeed Performance Report

Merging #3526 will not alter performance

Comparing conaclos/needs-parens-tweak-ownerhip (76f967b) with main (112e6d7)

Summary

✅ 104 untouched benchmarks

@Conaclos Conaclos added the A-Changelog Area: changelog label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Changelog Area: changelog A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants