Skip to content

perf: Reduce unnecessary conditional work in deep_verify_memo#759

Merged
Veykril merged 2 commits intosalsa-rs:masterfrom
Veykril:veykril/push-qwnqomnyoszy
Mar 16, 2025
Merged

perf: Reduce unnecessary conditional work in deep_verify_memo#759
Veykril merged 2 commits intosalsa-rs:masterfrom
Veykril:veykril/push-qwnqomnyoszy

Conversation

@Veykril
Copy link
Member

@Veykril Veykril commented Mar 15, 2025

No description provided.

@Veykril Veykril changed the title Reduce unnecessary condituional work in deep_verify_memo perf: Reduce unnecessary condituional work in deep_verify_memo Mar 15, 2025
@netlify
Copy link

netlify bot commented Mar 15, 2025

Deploy Preview for salsa-rs canceled.

Name Link
🔨 Latest commit f7df1d3
🔍 Latest deploy log https://app.netlify.com/sites/salsa-rs/deploys/67d69c82d6923e0008f9fe9a

@Veykril Veykril force-pushed the veykril/push-qwnqomnyoszy branch from e534881 to 585e551 Compare March 15, 2025 12:07
@Veykril Veykril changed the title perf: Reduce unnecessary condituional work in deep_verify_memo perf: Reduce unnecessary conditional work in deep_verify_memo Mar 15, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented Mar 15, 2025

CodSpeed Performance Report

Merging #759 will not alter performance

Comparing Veykril:veykril/push-qwnqomnyoszy (f7df1d3) with master (407e9e0)

Summary

✅ 12 untouched benchmarks

Copy link
Contributor

@carljm carljm left a comment

Choose a reason for hiding this comment

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

Nice, thank you!

) -> bool {
// Wouldn't it be nice if rust had an implication operator ...
// may_be_provisional -> validate_provisional
!memo.may_be_provisional() || self.validate_provisional(db, zalsa, database_key_index, memo)
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be just as good to not add this additional wrapper, and instead just check memo.may_be_provisional inside validate_provisional? This is the only call site of validate_provisional.

Copy link
Member Author

Choose a reason for hiding this comment

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

This seems to regress perf, presumably due to inlining changes

@Veykril Veykril force-pushed the veykril/push-qwnqomnyoszy branch from 8fd0787 to f0b42a6 Compare March 15, 2025 16:53
@Veykril Veykril enabled auto-merge March 15, 2025 16:54
@Veykril Veykril disabled auto-merge March 15, 2025 16:59
@Veykril Veykril force-pushed the veykril/push-qwnqomnyoszy branch from f0b42a6 to a93ab09 Compare March 15, 2025 17:38
@Veykril Veykril enabled auto-merge March 15, 2025 17:42
@Veykril Veykril added this pull request to the merge queue Mar 15, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Mar 15, 2025
@Veykril Veykril force-pushed the veykril/push-qwnqomnyoszy branch 3 times, most recently from 0e16289 to d3e66bc Compare March 16, 2025 09:38
@Veykril Veykril force-pushed the veykril/push-qwnqomnyoszy branch from d3e66bc to f7df1d3 Compare March 16, 2025 09:40
@Veykril Veykril added this pull request to the merge queue Mar 16, 2025
Merged via the queue into salsa-rs:master with commit c76b9e5 Mar 16, 2025
11 checks passed
@Veykril Veykril deleted the veykril/push-qwnqomnyoszy branch March 16, 2025 10:00
@github-actions github-actions bot mentioned this pull request Mar 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants