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

Add a display type for JsString to allow formatting without allocations #3951

Merged
merged 16 commits into from
Sep 9, 2024

Conversation

hansl
Copy link
Contributor

@hansl hansl commented Aug 14, 2024

Splitting this into its own PR as the other PR was getting too large and opinionated. This should be fairly straightforward.

Copy link

codecov bot commented Aug 14, 2024

Codecov Report

Attention: Patch coverage is 73.07692% with 7 lines in your changes missing coverage. Please review.

Project coverage is 51.32%. Comparing base (6ddc2b4) to head (d1eb2db).
Report is 249 commits behind head on main.

Files with missing lines Patch % Lines
core/string/src/lib.rs 36.36% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3951      +/-   ##
==========================================
+ Coverage   47.24%   51.32%   +4.08%     
==========================================
  Files         476      469       -7     
  Lines       46892    45228    -1664     
==========================================
+ Hits        22154    23215    +1061     
+ Misses      24738    22013    -2725     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jasonwilliams jasonwilliams added performance Performance related changes and issues API labels Aug 14, 2024
@hansl hansl requested a review from jasonwilliams August 16, 2024 15:52
Copy link
Member

@HalidOdat HalidOdat left a comment

Choose a reason for hiding this comment

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

Nice addition, looks good to me! :)

@HalidOdat HalidOdat added this to the next-release milestone Aug 17, 2024
core/string/src/display.rs Outdated Show resolved Hide resolved
@hansl hansl requested a review from HalidOdat August 19, 2024 02:41
Copy link
Member

@HalidOdat HalidOdat left a comment

Choose a reason for hiding this comment

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

Besides the minor nitpicks this looks good to me! :)

core/string/src/display.rs Outdated Show resolved Hide resolved
core/string/src/display.rs Outdated Show resolved Hide resolved
core/string/src/lib.rs Outdated Show resolved Hide resolved
hansl and others added 3 commits September 9, 2024 06:25
Co-authored-by: Haled Odat <8566042+HalidOdat@users.noreply.github.com>
Co-authored-by: Haled Odat <8566042+HalidOdat@users.noreply.github.com>
Co-authored-by: Haled Odat <8566042+HalidOdat@users.noreply.github.com>
@hansl
Copy link
Contributor Author

hansl commented Sep 9, 2024

@HalidOdat merged those three, don't know why I split the write in two with unpaired surrogates.

Copy link
Member

@HalidOdat HalidOdat left a comment

Choose a reason for hiding this comment

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

Looks perfect to me! :)

@HalidOdat HalidOdat merged commit 5534ec2 into boa-dev:main Sep 9, 2024
13 checks passed
hansl added a commit to hansl/boa that referenced this pull request Sep 12, 2024
…ns (boa-dev#3951)

Co-authored-by: Haled Odat <8566042+HalidOdat@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API performance Performance related changes and issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants