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

Default to sha256 for hashing source files #116043

Closed
wants to merge 1 commit into from

Conversation

saethlin
Copy link
Member

r? @ghost

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Sep 21, 2023
@saethlin
Copy link
Member Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Sep 21, 2023
@bors
Copy link
Contributor

bors commented Sep 21, 2023

⌛ Trying commit b576384 with merge e41bdac...

bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 21, 2023
Default to sha256 for hashing source files

r? `@ghost`
@bors
Copy link
Contributor

bors commented Sep 22, 2023

☀️ Try build successful - checks-actions
Build commit: e41bdac (e41bdac566c5933abbe556cea1b75d7b6793340c)

@rust-timer

This comment has been minimized.

@joshtriplett
Copy link
Member

Would it be worth testing blake3 as well, to see if it helps with performance?

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (e41bdac): comparison URL.

Overall result: ✅ improvements - no action needed

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

@bors rollup=never
@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.4% [-0.5%, -0.3%] 14
Improvements ✅
(secondary)
-0.8% [-2.2%, -0.2%] 20
All ❌✅ (primary) -0.4% [-0.5%, -0.3%] 14

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
0.9% [0.9%, 0.9%] 1
Regressions ❌
(secondary)
2.5% [2.5%, 2.5%] 1
Improvements ✅
(primary)
-2.7% [-2.7%, -2.7%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -0.9% [-2.7%, 0.9%] 2

Cycles

This benchmark run did not return any relevant results for this metric.

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 634.138s -> 631.491s (-0.42%)
Artifact size: 317.56 MiB -> 317.55 MiB (-0.00%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Sep 22, 2023
@Kobzol
Copy link
Contributor

Kobzol commented Sep 22, 2023

I tested blake3 a few months ago. There were small-ish perf. wins, but it didn't seem worth it in the grand scheme of things to introduce a new dependency. But I haven't run the whole perf. suite on it, just a few local experiments.

@ChrisDenton
Copy link
Member

I would ask why this was previously msvc only? If there was a reason for excluding other platforms then it'd be good to know if those reasons have been solved or if they're still outstanding.

@klensy
Copy link
Contributor

klensy commented Sep 22, 2023

#113707
#113707 (comment)

@saethlin
Copy link
Member Author

If this can be landed, it would need a lot of other improvements outside of rustc itself first. Maybe I'll poke DWARF about this; if MD5 isn't good enough for Microsoft I don't see why it should be good enough for DWARF.

@saethlin saethlin closed this Sep 23, 2023
@saethlin saethlin deleted the sha256-sourcefile branch September 23, 2023 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants