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

Optimization: 9~15% improvement in KinesisDataFetcher wall-time after #1034

Merged
merged 1 commit into from
Feb 13, 2023

Conversation

stair-aws
Copy link
Contributor

Issue #, if available:
n/a

Description of changes:
Optimization: 9~15% improvement in KinesisDataFetcher wall-time after converting AWSExceptionManger to a static variable.

Timed using multiple loops of 10k iterations/loop. Observed time decreased from (p50=267ms, p100=398ms) to (p50=245ms, p100=307ms).

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

converting `AWSExceptionManger` to a static variable.
@@ -154,14 +153,13 @@ public final void testInitializeInvalid() throws Exception {
testInitializeAndFetch("foo", null, INITIAL_POSITION_LATEST);
}

private CompletableFuture<GetShardIteratorResponse> makeGetShardIteratorResonse(String shardIterator)
throws InterruptedException, ExecutionException {
private CompletableFuture<GetShardIteratorResponse> makeGetShardIteratorResponse(String shardIterator) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed typo: s/Resonse/Response/

@stair-aws stair-aws added the v2.x Issues related to the 2.x version label Feb 9, 2023
Copy link

@keerthy411 keerthy411 left a comment

Choose a reason for hiding this comment

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

LGTM

@stair-aws stair-aws merged commit 4d94efa into awslabs:master Feb 13, 2023
@stair-aws stair-aws deleted the exception-manager branch February 13, 2023 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2.x Issues related to the 2.x version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants