Skip to content

Reduce amount of code in AsyncPgConnection functions that have query type as generic parameter #153

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 6 commits into from
Jun 13, 2024

Conversation

dullbananas
Copy link
Contributor

@dullbananas dullbananas changed the title Reduce amount of code in functions that have query type as generic parameter Reduce amount of code in AsyncPgConnection functions that have query type as generic parameter Jun 8, 2024
@dullbananas dullbananas marked this pull request as ready for review June 8, 2024 13:20
@weiznich
Copy link
Owner

Thanks for opening this PR. Do you have any hard numbers that this change actually improves compile times is any measurable way? Or is it just a general optimization that you would like to apply?

@dullbananas
Copy link
Contributor Author

The total amount of LLVM lines in the lemmy_db_schema crate reduced by 34%

Copy link
Owner

@weiznich weiznich left a comment

Choose a reason for hiding this comment

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

Thanks for clarifying. That's helpful.

I'm conceptually fine with this change. I've noted an location where an additional improvement might be possible.

dullbananas and others added 3 commits June 11, 2024 11:34
Co-authored-by: Georg Semmler <github@weiznich.de>
@weiznich weiznich merged commit 74867bd into weiznich:main Jun 13, 2024
38 checks passed
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