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

Do not allocate input singleton data for non-singleton inputs #631

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

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Dec 15, 2024

This does some type shenanigans (unfortunately can't gate on the previously used const as Rust's const story just isn't there yet), to swap the singleton field with () if it's not needed.

Copy link

netlify bot commented Dec 15, 2024

Deploy Preview for salsa-rs canceled.

Name Link
🔨 Latest commit f033948
🔍 Latest deploy log https://app.netlify.com/sites/salsa-rs/deploys/677909e93ad585000883b46e

Copy link

codspeed-hq bot commented Dec 15, 2024

CodSpeed Performance Report

Merging #631 will not alter performance

Comparing Veykril:veykril/push-qnsrxyrxzotu (f033948) with master (32bd57c)

Summary

✅ 9 untouched benchmarks

}
}
#[derive(Default)]
pub struct NoSingleton;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: maybe NotSingleton instead?

Copy link
Member Author

@Veykril Veykril Jan 4, 2025

Choose a reason for hiding this comment

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

Changed it, (apparently the concept of a Multiton exists as well, but that's not quite fitting either here)

@Veykril Veykril force-pushed the veykril/push-qnsrxyrxzotu branch 2 times, most recently from 26f9e60 to 8b19364 Compare January 4, 2025 10:10
@Veykril Veykril force-pushed the veykril/push-qnsrxyrxzotu branch from 8b19364 to f033948 Compare January 4, 2025 10:13
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