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

First pass at optimizing SplitOnWordBoundaries #3140

Merged
merged 1 commit into from
Nov 2, 2023
Merged

Conversation

rcoh
Copy link
Collaborator

@rcoh rcoh commented Nov 2, 2023

Motivation and Context

@Velfi observed this function consuming a significant amount of codegen time.

Description

Optimize split on word boundaries, primarily by avoiding recomputation of isStartOfWord when we already know it isn't the start of a word.

Testing

  • Original: 3.4s. Updated: 688ms
  • Existing tests are exhaustive

On a :aws:sdk:assemble for the smoke test services, this improved from 53 seconds to 42 seconds


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

@rcoh rcoh requested review from a team as code owners November 2, 2023 15:34
@rcoh rcoh enabled auto-merge November 2, 2023 15:48
Copy link

github-actions bot commented Nov 2, 2023

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

@rcoh rcoh added this pull request to the merge queue Nov 2, 2023
Merged via the queue into main with commit 59a4783 Nov 2, 2023
41 checks passed
@rcoh rcoh deleted the optimize-casing branch November 2, 2023 16:46
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