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

Use sorted feedDict names as part of the cache key #6327

Merged
merged 2 commits into from Apr 27, 2022

Conversation

Linchenn
Copy link
Collaborator

@Linchenn Linchenn commented Apr 14, 2022

This PR is trying to deduplicate cachedSorted's and cachedRecipientCounts's entries by ordering the names of feedDict.

Just add .sort() for composing the key of caches, instead of embedding it into FeedDict.names(), because FeedDict.names() is frequently used and the order does not matter for most cases.

For more information, please refer to #6312 (comment)

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.


This change is Reviewable

@Linchenn Linchenn requested a review from pyu10055 April 14, 2022 22:17
Copy link
Collaborator

@pyu10055 pyu10055 left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained

@Linchenn Linchenn merged commit 34295f6 into tensorflow:master Apr 27, 2022
@Linchenn Linchenn deleted the dedup branch April 27, 2022 16:51
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.

None yet

2 participants