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 way to create JsString from ASCII literal without heap allocation #3922

Closed

Conversation

CrazyboyQCD
Copy link
Contributor

@CrazyboyQCD CrazyboyQCD commented Jul 17, 2024

Use js_string macro to create JsString from an ASCII literal usually causes heap allocation.
This adds a way to create JsString from ASCII literal without heap allocation.

Copy link

codecov bot commented Jul 17, 2024

Codecov Report

Attention: Patch coverage is 89.65517% with 3 lines in your changes missing coverage. Please review.

Project coverage is 51.04%. Comparing base (6ddc2b4) to head (138a6d9).
Report is 211 commits behind head on main.

Files Patch % Lines
core/string/src/lib.rs 89.65% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3922      +/-   ##
==========================================
+ Coverage   47.24%   51.04%   +3.79%     
==========================================
  Files         476      467       -9     
  Lines       46892    44492    -2400     
==========================================
+ Hits        22154    22709     +555     
+ Misses      24738    21783    -2955     

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

@CrazyboyQCD CrazyboyQCD changed the title Add macro to create JsString from ASCII literal Add way to create JsString from ASCII literal without heap allocation Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant