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

Make ContainmentTree fully generic #4620

Merged
merged 2 commits into from
Apr 18, 2023
Merged

Conversation

alexkirsz
Copy link
Contributor

@alexkirsz alexkirsz commented Apr 18, 2023

Description

This turns the ContainmentTree struct into a fully generic data structure. The previous PR in this stack already made the chunks values generic, but this goes one step further by making the key type generic as well.

Testing Instructions

Unit test

@alexkirsz alexkirsz requested a review from a team as a code owner April 18, 2023 11:56
@vercel
Copy link

vercel bot commented Apr 18, 2023

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

Name Status Preview Comments Updated (UTC)
examples-designsystem-docs 🔄 Building (Inspect) Apr 18, 2023 0:58am
examples-kitchensink-blog 🔄 Building (Inspect) Apr 18, 2023 0:58am
examples-vite-web 🔄 Building (Inspect) Apr 18, 2023 0:58am
turbo-site 🔄 Building (Inspect) Visit Preview Apr 18, 2023 0:58am
7 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Apr 18, 2023 0:58am
examples-cra-web ⬜️ Ignored (Inspect) Apr 18, 2023 0:58am
examples-gatsby-web ⬜️ Ignored (Inspect) Apr 18, 2023 0:58am
examples-native-web ⬜️ Ignored (Inspect) Apr 18, 2023 0:58am
examples-nonmonorepo ⬜️ Ignored (Inspect) Apr 18, 2023 0:58am
examples-svelte-web ⬜️ Ignored (Inspect) Apr 18, 2023 0:58am
examples-tailwind-web ⬜️ Ignored (Inspect) Apr 18, 2023 0:58am

@alexkirsz
Copy link
Contributor Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@github-actions
Copy link
Contributor

✅ This changes can build next-swc

@github-actions
Copy link
Contributor

Benchmark for d4e09c8

Click to view benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 8352.08µs ± 26.64µs 8281.45µs ± 47.73µs -0.85%
bench_hmr_to_eval/Turbopack CSR/1000 modules 7413.35µs ± 72.32µs 7505.38µs ± 110.69µs +1.24%
bench_startup/Turbopack CSR/1000 modules 856.63ms ± 1.91ms 858.55ms ± 3.57ms +0.22%

@github-actions
Copy link
Contributor

github-actions bot commented Apr 18, 2023

🟢 CI successful 🟢

Thanks

Base automatically changed from alexkirsz/web-891-step-3-address-pr-comments-from-step-2 to main April 18, 2023 12:51
@alexkirsz alexkirsz force-pushed the alexkirsz/generic-containment-tree branch from 4ddc6f8 to f167989 Compare April 18, 2023 12:57
@github-actions
Copy link
Contributor

Benchmark for 794df61

Click to view benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 9051.30µs ± 69.46µs 8829.09µs ± 72.99µs -2.46%
bench_hmr_to_eval/Turbopack CSR/1000 modules 8015.90µs ± 35.75µs 8073.67µs ± 53.30µs +0.72%
bench_startup/Turbopack CSR/1000 modules 877.60ms ± 2.89ms 888.45ms ± 4.70ms +1.24%

@alexkirsz alexkirsz added the pr: automerge Kodiak will merge these automatically after checks pass label Apr 18, 2023
@kodiakhq kodiakhq bot merged commit 1e51d4e into main Apr 18, 2023
@kodiakhq kodiakhq bot deleted the alexkirsz/generic-containment-tree branch April 18, 2023 16:27
sokra added a commit to vercel/next.js that referenced this pull request Apr 20, 2023
### What?

add support for blur placeholder generation to turbopack

add `StructuredImageModuleType` which is used with `ModuleType::Custom`
to allow importing an image as `{ url, width, height, blurDataURL,
blurWidth, blurHeight }`

in contrast to next.js with webpack this will also generate blur
placeholder in development instead of using a _next/image reference.
This should lead to more production-like experience (at the cost of a
little bit of compilation time).

turbo PR: vercel/turborepo#4621

### Why?

Turbopack was crashing on `placeholder="blur"` before.

fixes WEB-534

### Turbopack changes

* vercel/turborepo#4521 <!-- OJ Kwon -
feat(contextcondition): support InPath contextcondition -->
* vercel/turborepo#4601 <!-- Alex Kirszenberg -
Chunking Context Refactor pt. 3: Address PR comments from pt. 2 -->
* vercel/turborepo#4623 <!-- Tobias Koppers -
exclude turborepo from turbopack bench tests -->
* vercel/turborepo#4399 <!-- Leah - support
require.context -->
* vercel/turborepo#4610 <!-- OJ Kwon - test(subset):
add mdx test into subset -->
* vercel/turborepo#4624 <!-- Tobias Koppers - run
benchmarks on windows and macOS too -->
* vercel/turborepo#4620 <!-- Alex Kirszenberg - Make
ContainmentTree fully generic -->
* vercel/turborepo#4600 <!-- Tobias Koppers - add
getChunkPath method -->
* vercel/turborepo#4621 <!-- Tobias Koppers - add
turbopack-image -->
* vercel/turborepo#4639 <!-- Tobias Koppers -
restrict snapshot path for windows path length limit -->
* vercel/turborepo#4641 <!-- Tobias Koppers - put
webp behind a feature flag -->
NicholasLYang pushed a commit to NicholasLYang/turbo that referenced this pull request Apr 21, 2023
### Description

This turns the ContainmentTree struct into a fully generic data
structure. The previous PR in this stack already made the chunks values
generic, but this goes one step further by making the key type generic
as well.

### Testing Instructions

Unit test
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 25, 2024
### Description

This turns the ContainmentTree struct into a fully generic data
structure. The previous PR in this stack already made the chunks values
generic, but this goes one step further by making the key type generic
as well.

### Testing Instructions

Unit test
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
### Description

This turns the ContainmentTree struct into a fully generic data
structure. The previous PR in this stack already made the chunks values
generic, but this goes one step further by making the key type generic
as well.

### Testing Instructions

Unit test
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 1, 2024
### Description

This turns the ContainmentTree struct into a fully generic data
structure. The previous PR in this stack already made the chunks values
generic, but this goes one step further by making the key type generic
as well.

### Testing Instructions

Unit test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: automerge Kodiak will merge these automatically after checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants