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

perf: Use &'static str instead of String if possible #6845

Merged
merged 2 commits into from
Dec 22, 2023
Merged

Conversation

kdy1
Copy link
Member

@kdy1 kdy1 commented Dec 21, 2023

Description

All calls are generated by the proc-macro, so we don't need to allocate.

Testing Instructions

Closes PACK-2177

Copy link

vercel bot commented Dec 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-basic-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback Dec 21, 2023 8:20pm
examples-designsystem-docs 🔄 Building (Inspect) Visit Preview 💬 Add feedback Dec 21, 2023 8:20pm
examples-gatsby-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback Dec 21, 2023 8:20pm
examples-native-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback Dec 21, 2023 8:20pm
rust-docs ❌ Failed (Inspect) Dec 21, 2023 8:20pm
6 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Dec 21, 2023 8:20pm
examples-nonmonorepo ⬜️ Ignored (Inspect) Visit Preview Dec 21, 2023 8:20pm
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Dec 21, 2023 8:20pm
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Dec 21, 2023 8:20pm
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Dec 21, 2023 8:20pm
turbo-site ⬜️ Ignored (Inspect) Visit Preview Dec 21, 2023 8:20pm

Copy link
Contributor

github-actions bot commented Dec 21, 2023

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

✅ This change can build next-swc

Copy link
Contributor

github-actions bot commented Dec 21, 2023

🟢 CI successful 🟢

Thanks

@kdy1 kdy1 marked this pull request as ready for review December 21, 2023 21:07
@kdy1 kdy1 requested a review from a team as a code owner December 21, 2023 21:07
Copy link
Member

@ForsakenHarmony ForsakenHarmony left a comment

Choose a reason for hiding this comment

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

don't think this will realistically have a measurable impact on performance, but it seems like a good idea in general

@kdy1 kdy1 merged commit d968f7b into main Dec 22, 2023
51 of 52 checks passed
@kdy1 kdy1 deleted the kdy1/static-is-static branch December 22, 2023 03:15
kdy1 added a commit to vercel/next.js that referenced this pull request Jan 2, 2024
### What?

Update SWC crates

### Why?

It's required to fix some next.js isssues

### How?

Closes PACK-2174
Turbopack counterpart: vercel/turborepo#6843

---


# Turbopack

* vercel/turborepo#6737 <!-- Nicholas Yang - feat:
Nice errors for shim flag parsing -->
* vercel/turborepo#6494 <!-- Justin Ridgewell -
Trace output's source maps through input's source map -->
* vercel/turborepo#6778 <!-- Will Binns-Smith -
turbopack-css: fix rule duplication -->
* vercel/turborepo#6807 <!-- Mehul Kar - fix: add
missing dependency to cargo lockfile -->
* vercel/turborepo#6809 <!-- Nicholas Yang -
refactor: Remove bookkeeping abstraction from turbo config -->
* vercel/turborepo#6838 <!-- Nicholas Yang - fix:
Allow for long symlinks by using append_link -->
* vercel/turborepo#6845 <!-- Donny/강동윤 - perf: Use
`&'static str` instead of `String` if possible -->
* vercel/turborepo#6843 <!-- Donny/강동윤 - Update
`swc_core` to `v0.87.10` -->
Zertsov pushed a commit that referenced this pull request Jan 5, 2024
### Description

The proc-macro generates all calls, so we don't need to allocate.

### Testing Instructions



Closes PACK-2177
agustints pushed a commit to agustints/next.js that referenced this pull request Jan 6, 2024
### What?

Update SWC crates

### Why?

It's required to fix some next.js isssues

### How?

Closes PACK-2174
Turbopack counterpart: vercel/turborepo#6843

---


# Turbopack

* vercel/turborepo#6737 <!-- Nicholas Yang - feat:
Nice errors for shim flag parsing -->
* vercel/turborepo#6494 <!-- Justin Ridgewell -
Trace output's source maps through input's source map -->
* vercel/turborepo#6778 <!-- Will Binns-Smith -
turbopack-css: fix rule duplication -->
* vercel/turborepo#6807 <!-- Mehul Kar - fix: add
missing dependency to cargo lockfile -->
* vercel/turborepo#6809 <!-- Nicholas Yang -
refactor: Remove bookkeeping abstraction from turbo config -->
* vercel/turborepo#6838 <!-- Nicholas Yang - fix:
Allow for long symlinks by using append_link -->
* vercel/turborepo#6845 <!-- Donny/강동윤 - perf: Use
`&'static str` instead of `String` if possible -->
* vercel/turborepo#6843 <!-- Donny/강동윤 - Update
`swc_core` to `v0.87.10` -->
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 25, 2024
…orepo#6845)

### Description

The proc-macro generates all calls, so we don't need to allocate.

### Testing Instructions



Closes PACK-2177
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
…orepo#6845)

### Description

The proc-macro generates all calls, so we don't need to allocate.

### Testing Instructions



Closes PACK-2177
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
…orepo#6845)

### Description

The proc-macro generates all calls, so we don't need to allocate.

### Testing Instructions



Closes PACK-2177
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 1, 2024
…orepo#6845)

### Description

The proc-macro generates all calls, so we don't need to allocate.

### Testing Instructions



Closes PACK-2177
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants