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

use prehash to avoid rehashing the key in the task cache #8174

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sokra
Copy link
Member

@sokra sokra commented May 17, 2024

Description

This avoids hashing the task type multiple times, e. g. for inserting after lookup or on rehashing of the hash map

Testing Instructions

Copy link

vercel bot commented May 17, 2024

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

Name Status Preview Comments Updated (UTC)
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 3, 2024 4:20pm
rust-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 3, 2024 4:20pm
8 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Jun 3, 2024 4:20pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Jun 3, 2024 4:20pm
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview Jun 3, 2024 4:20pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Jun 3, 2024 4:20pm
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Jun 3, 2024 4:20pm
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Jun 3, 2024 4:20pm
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Jun 3, 2024 4:20pm
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Jun 3, 2024 4:20pm

Copy link
Contributor

github-actions bot commented May 17, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

github-actions bot commented May 17, 2024

⚠️ This change may fail to build next-swc.

Logs

error: failed to select a version for `swc_core`.
    ... required by package `turbopack-binding v0.1.0 (https://github.com/vercel/turbo?rev=a66c35a3e395ecddcade4f3c6593a84685abfd98#13aba96f)`
    ... which satisfies git dependency `turbopack-binding` (locked to 0.1.0) of package `next-swc-napi v0.0.0 (/root/actions-runner/_work/turbo/turbo/packages/next-swc/crates/napi)`
versions that meet the requirements `^0.92.8` are: 0.92.8

all possible versions conflict with previously selected packages.

  previously selected package `swc_core v0.92.5`
    ... which satisfies dependency `swc_core = "^0.92.5"` (locked to 0.92.5) of package `wasm v0.0.0 (/root/actions-runner/_work/turbo/turbo/packages/next-swc/crates/wasm)`

failed to select a version for `swc_core` which could resolve this conflict

See job summary for details

Copy link
Contributor

github-actions bot commented May 17, 2024

🟢 CI likely successful 🟢

A few longer running steps are still running, but they should not be considered as blocking.

See workflow summary for details

@sokra sokra requested a review from arlyon May 20, 2024 06:01
@arlyon arlyon requested a review from a team as a code owner May 22, 2024 09:59
@arlyon arlyon requested review from mehulkar and tknickman May 22, 2024 09:59
@arlyon arlyon changed the base branch from main to arlyon/mpl-2-0-copyleft-exception May 22, 2024 09:59
Copy link
Contributor

arlyon commented May 22, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @sokra and the rest of your teammates on Graphite Graphite

Base automatically changed from arlyon/mpl-2-0-copyleft-exception to main May 22, 2024 18:23
arlyon added a commit that referenced this pull request May 22, 2024
### Description

In this PR #8174 the library prehash
is licensed using MPL2.0 (great) but without the copyleft exception.

I believe that we are OK. From what I understand this prevents us from
making and redistributing changes to this library under one of the MPL
secondary licenses ("Secondary License" means either the GNU General
Public License, Version 2.0, the GNU Lesser General Public License,
Version 2.1, the GNU Affero General Public License, Version 3.0, or any
later versions of those licenses).

It does not exclude us from using that library in a 'larger work' that
is licensed using a different (compatible) license so for the purpose of
distributing a binary it is the same as MPL-2.0

### Testing Instructions

N/A
@bgw
Copy link
Member

bgw commented May 22, 2024

See my comment here: #8194 (review)

I don't think this library is providing much value, and we could easily implement this ourselves, which might avoid the mess with the extra MPL license variant.

Copy link
Contributor

@arlyon arlyon left a comment

Choose a reason for hiding this comment

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

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.

None yet

3 participants