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

Non-functional miscellaneous improvements #1445

Merged
merged 11 commits into from
Jun 27, 2022

Conversation

david-perez
Copy link
Contributor

This commit contains non-functional (i.e. mostly stylistic, small
refactors, documentation and consistency) improvements that I've batched
and rolled up while working on #1342.

  • Make extraDependencies from InlineDependency class private
  • Miscellaneous improvements to RustTypes.kt
  • Remove dead code from RuntimeTypes.kt
  • Style change in RuntimeTypes.kt
  • Miscellaneous improvements to SymbolVisitor.kt
  • Miscellaneous improvements to BuilderGenerator.kt
  • Miscellaneous improvements to TestHelpers.kt
  • Add docs to headers_for_prefix function
    • I keep rereading the implementation to see what this returns; it's
      not intuitive from the function name.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@david-perez david-perez requested a review from a team as a code owner June 7, 2022 15:35
@david-perez david-perez mentioned this pull request Jun 7, 2022
@github-actions
Copy link

github-actions bot commented Jun 7, 2022

A new generated diff is ready to view.

A new doc preview is ready to view.

Rust Wrk benchmark report:

Duration: 90 sec, Connections: 32, Threads: 2

Measurement Deviation Current Old
Requests/sec 0.77% 35295.66 35025.29
Total requests 0.76% 3178285 3154335
Total errors NaN% 0 0
Total successes 0.76% 3178285 3154335
Average latency ms -1.05% 0.94 0.95
Minimum latency ms 0.00% 0.03 0.03
Maximum latency ms 10.06% 18.82 17.1
Stdev latency ms 0.00% 0.62 0.62
Transfer Mb 0.76% 330.38 327.89
Connect errors NaN% 0 0
Read errors NaN% 0 0
Write errors NaN% 0 0
Status errors (not 2xx/3xx) NaN% 0 0
Timeout errors NaN% 0 0

Copy link
Contributor

@crisidev crisidev left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@rcoh rcoh left a comment

Choose a reason for hiding this comment

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

LGTM thanks for doing this!

@@ -293,7 +296,7 @@ class SymbolVisitor(
return symbolBuilder(
shape,
RustType.Opaque(
shape.contextName()
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is fine—operations can't be renamed which is why the no-arg method exists

@github-actions
Copy link

github-actions bot commented Jun 9, 2022

A new generated diff is ready to view.

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@david-perez david-perez merged commit ae2a74b into main Jun 27, 2022
@david-perez david-perez deleted the davidpz/miscellaneous-improvements branch June 27, 2022 16:19
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.

4 participants