Ideas for making compilation faster #2573
thomas-k-cameron
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
I believe both are already addressed in https://github.com/awslabs/smithy-rs/blob/5b260e5db94830bc8fb75a22a9f1957b6fd4d838/design/src/faq.md Having said that, things might change soon, as we've been discussing both points already |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have some ideas for making compilation faster.
Crate Per Service
You should be able to make it faster by chopping generated code into multiple crates.
rustc
does something similarhttps://rustc-dev-guide.rust-lang.org/compiler-src.html#big-picture
I suggest having a single crate for each service and maybe feature gate for each of them.
API on fluent-builder can tell users to enable the feature when it's not.
Like this.
Replacing smithy specific json serialization/de-serialization code with serde/serde_json crate.
I noticed there are lots of code for de-serializing json data that come from AWS.
I think you can use serde crate for de-serialization like this.
Furthremore, I think you could have something like
aws_sdk_s3_prelude
that keeps data types that are used by multiple services.Considerations
Beta Was this translation helpful? Give feedback.
All reactions