Replies: 1 comment 5 replies
-
|
I'm happy to accept actual improvements or suggestions what to change here. Otherwise I'm well aware of these tools and already use them so this post as it is does not add any new information for me. More generally written: I do not think that order of magnitude improvements in terms of compile times with 64 or 128 columns-tables enabled are possible without significant language changes like variadic generics. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Backend
PostgreSQL, MySQL, SQLite, Others
What do you want to add to diesel?
On Rust nightly there is a new flag
-Zmacro-statswhich shows the amount of code generated by macros. Diesel uses a lot of macros so this could be helpful to remove unnecessary parts and make compilation faster. See this blog post for more details. Another post has details how this was used to optimize macros in Bevy.For diesel it shows the following output (this is with 64-column-tables and some other features enabled):
Implementation notes
I dont have any experience writing macros so no idea. The blog posts linked above may help.
Additional details
No response
Checklist
Beta Was this translation helpful? Give feedback.
All reactions