-
Notifications
You must be signed in to change notification settings - Fork 81
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
feat: use sdk-partitions.json from trebuchet #1667
Conversation
@dayaffe I have reservations about performance on this, since a file must be read from disk for every API request. File system caching might minimize the hit though. This might be something we can look at once performance monitoring is in place. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have unresolved merge conflicts in this branch.
Also, better to use actor
to prevent simultaneous access than DispatchQueue
.
resources: [ | ||
<<<<<<< HEAD | ||
.process("Resources"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol pick this
case readError(String) | ||
} | ||
|
||
public class PartitionData { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if you just make this type an actor, it will enforce exclusive calls to loadAWSPartitionJSON()
.
We should not be using DispatchQueue & other GCD types in new code, except where necessary to interact with pre-Swift concurrency code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made PartitionDataCache an actor which is used by this and removed DispatchQueue
Issue #
Description of changes
New/existing dependencies impact assessment, if applicable
Conventional Commits
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.