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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 馃悰 amd external-array #3226

Merged
merged 1 commit into from
May 19, 2023
Merged

fix: 馃悰 amd external-array #3226

merged 1 commit into from
May 19, 2023

Conversation

IWANABETHATGUY
Copy link
Contributor

@IWANABETHATGUY IWANABETHATGUY commented May 19, 2023

Related issue (if exists)

Summary

馃 Generated by Copilot at cebc981

Refactor Module struct to use Cow<'static, str> for request field and update format! macro accordingly. This improves performance and memory usage in rspack_plugin_library.

Walkthrough

馃 Generated by Copilot at cebc981

  • Convert the request field of the Module struct to a &str before formatting it with single quotes (link) in crates/rspack_plugin_library/src/utils.rs. This avoids unnecessary allocations and cloning of strings.

@github-actions github-actions bot added release: bug fix team The issue/pr is created by the member of Rspack. labels May 19, 2023
@IWANABETHATGUY IWANABETHATGUY marked this pull request as ready for review May 19, 2023 05:04
@IWANABETHATGUY IWANABETHATGUY changed the title fix: 馃悰 external-array fix: 馃悰 amd external-array May 19, 2023
@hardfist hardfist added this pull request to the merge queue May 19, 2023
Merged via the queue into main with commit 9667624 May 19, 2023
15 checks passed
@hardfist hardfist deleted the fix/external-array-string branch May 19, 2023 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants