Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Faster label summary equality for diffing #725

Merged
merged 2 commits into from
Oct 25, 2017
Merged

Conversation

rnystrom
Copy link
Member

Followup from #716

@rnystrom rnystrom merged commit 2585f2c into master Oct 25, 2017
@rnystrom rnystrom deleted the faster-label-check branch October 25, 2017 01:59
@joerocca
Copy link
Member

Nice!
We should be able to remove the Equatable conformance from RepositoryLabel using this method?

@@ -38,6 +41,7 @@ class RepositoryIssueSummaryModel: ListDiffable {
self.status = status
self.pullRequest = pullRequest
self.labels = labels
self.labelSummary = labels.reduce("", { $0 + $1.name })
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe { "\($0)\($1.name)" }? No big deal though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants