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

fix: improve speed of Files.walk() #466

Merged
merged 4 commits into from
May 20, 2024

Conversation

markjschreiber
Copy link
Contributor

Issue #, if available:
#458

Description of changes:
caches results of expensive calls to determine the bucket region and caches clients for buckets to reduce the large expense of creating a client. Clients are meant to be re-used according to SDK docs and are thread safe. Because clients can be "auto-closed", Cached clients are wrapped so that their "closed" status can be recorded and queried. Generally clients should not be closed unless you know you will no longer need them (due to the cost of creating them).

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

@markjschreiber markjschreiber force-pushed the markjschreiber/feat/client-cache branch from 8b6f45c to 88c83bb Compare May 20, 2024 19:48
@markjschreiber
Copy link
Contributor Author

fixes #458

@markjschreiber markjschreiber merged commit 4267268 into main May 20, 2024
1 check passed
@markjschreiber markjschreiber deleted the markjschreiber/feat/client-cache branch May 20, 2024 19:57
stefanofornari pushed a commit to stefanofornari/aws-java-nio-spi-for-s3 that referenced this pull request Aug 6, 2024
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.

1 participant