Skip to content

Do not write IssueData to the DB when it is unchanged #1975

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

Merged
merged 1 commit into from
May 7, 2025

Conversation

Kobzol
Copy link
Contributor

@Kobzol Kobzol commented May 7, 2025

Noticed this while working on #1968. I don't think that it's really needed for perf., but I suppose that most of the time we just write back the same data, which seems wasteful, and the structs are simple enough that requiring Clone + Eq shouldn't be that difficult.

@Kobzol Kobzol requested a review from Urgau May 7, 2025 08:14
@Kobzol Kobzol force-pushed the issue-data-write branch from 4bd5638 to 333665a Compare May 7, 2025 09:28
Copy link
Member

@Urgau Urgau left a comment

Choose a reason for hiding this comment

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

Sure, why not.

@Urgau Urgau added this pull request to the merge queue May 7, 2025
Merged via the queue into rust-lang:master with commit 6a9c532 May 7, 2025
3 checks passed
@Kobzol Kobzol deleted the issue-data-write branch May 7, 2025 17:14
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.

3 participants