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: arlyon/prehash-crate
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 May 31, 2024 2:32pm
rust-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 31, 2024 2:32pm
8 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview May 31, 2024 2:32pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview May 31, 2024 2:32pm
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview May 31, 2024 2:32pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview May 31, 2024 2:32pm
examples-native-web ⬜️ Ignored (Inspect) Visit Preview May 31, 2024 2:32pm
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview May 31, 2024 2:32pm
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview May 31, 2024 2:32pm
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview May 31, 2024 2:32pm

Copy link
Contributor

github-actions bot commented May 17, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

✅ This change can build next-swc

Copy link
Contributor

github-actions bot commented May 17, 2024

⚠️ CI failed ⚠️

The following steps have failed in CI:

  • Turbopack Rust tests (mac/win, non-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

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

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.

@tknickman tknickman removed their request for review May 24, 2024 17:26
@mehulkar mehulkar removed their request for review May 30, 2024 00:53
@arlyon arlyon changed the base branch from main to arlyon/prehash-crate May 31, 2024 14:30
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