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(parser): remove TokenValue::Number from Token #1945

Merged

Conversation

Boshen
Copy link
Member

@Boshen Boshen commented Jan 8, 2024

This PR is part of #1880.

Token size is reduced from 40 to 32 bytes.

This PR is part of #1880.

Token size is reduced from 40 to 32 bytes.
Copy link
Member Author

Boshen commented Jan 8, 2024

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

@github-actions github-actions bot added the A-parser Area - Parser label Jan 8, 2024
@Boshen
Copy link
Member Author

Boshen commented Jan 8, 2024

Note to self: number lexing no longer requires the string builder.

Copy link

codspeed-hq bot commented Jan 8, 2024

CodSpeed Performance Report

Merging #1945 will not alter performance

Comparing 01-08-refactor_parser_remove_TokenValue_Number_from_Token (48bbd5d) with main (84dc690)

Summary

✅ 14 untouched benchmarks

@Boshen
Copy link
Member Author

Boshen commented Jan 8, 2024

image

@overlookmotel 😍

@Boshen
Copy link
Member Author

Boshen commented Jan 8, 2024

We can add a OnceCell to all the values and make them truly lazy, but we'll need to figure out the memory leak problem before doing so.

@Boshen Boshen requested a review from Dunqing January 8, 2024 08:20
@Dunqing
Copy link
Member

Dunqing commented Jan 8, 2024

Looks great!!

@Boshen Boshen merged commit 6e0bd52 into main Jan 8, 2024
18 checks passed
@Boshen Boshen deleted the 01-08-refactor_parser_remove_TokenValue_Number_from_Token branch January 8, 2024 08:29
@Boshen Boshen changed the title refactor(parser): remove TokenValue::Number from Token refactor(parser): remove TokenValue::Number from Token Jan 8, 2024
@Boshen Boshen changed the title refactor(parser): remove TokenValue::Number from Token refactor(parser): remove TokenValue::Number from Token Jan 8, 2024
@Boshen Boshen mentioned this pull request Jan 8, 2024
@overlookmotel
Copy link
Contributor

Nice one!

IWANABETHATGUY pushed a commit to IWANABETHATGUY/oxc that referenced this pull request May 29, 2024
)

This PR is part of oxc-project#1880.

Token size is reduced from 40 to 32 bytes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-parser Area - Parser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants