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

fix: toString performance #6896

Merged
merged 5 commits into from
Mar 15, 2023

Conversation

BeksOmega
Copy link
Collaborator

@BeksOmega BeksOmega commented Mar 14, 2023

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide
  • I ran npm run format and npm run lint

The details

Resolves

Fixes #4229

Proposed Changes

Increases peformance of toString 50x. Used to take ~50ms, now takes <1ms.

Reason for Changes

Speeeeed.

Test Coverage

Just manual testing.

Documentation

N/A

Additional Information

N/A

@BeksOmega BeksOmega requested a review from a team as a code owner March 14, 2023 22:55
@github-actions github-actions bot added PR: fix Fixes a bug and removed PR: fix Fixes a bug labels Mar 14, 2023

let node = ASTNode.createBlockNode(this);
const rootNode = node;
let prev = '';
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add the comment too?

// Join the text array, removing the spaces around added parentheses.

@BeksOmega BeksOmega merged commit 66fd055 into google:develop Mar 15, 2023
@BeksOmega BeksOmega deleted the fix/to-string-performance branch May 3, 2023 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: fix Fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Collapsed block performance
2 participants