Skip to content

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

Merged
HalidOdat merged 16 commits intoboa-dev:mainfrom
hansl:string-display-escaped
Sep 9, 2024
Merged

Add a display type for JsString to allow formatting without allocations#3951
HalidOdat merged 16 commits intoboa-dev:mainfrom
hansl:string-display-escaped

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.

@codecov
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 A-Performance Performance related changes and issues A-API Changes related to public APIs 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
@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! :)

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
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

A-API Changes related to public APIs A-Performance Performance related changes and issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants