Hash just the webFeedID in WebFeed’s hash function. This will almost always be unique, and it helps performance because 1) string hashing is slow, and 2) we update sets of WebFeeds kind of often.

This commit is contained in:
Brent Simmons 2019-12-07 12:05:58 -08:00
parent 121ecd1927
commit b61cd3a869
1 changed files with 0 additions and 1 deletions

View File

@ -232,7 +232,6 @@ public final class WebFeed: Feed, Renamable, Hashable {
public func hash(into hasher: inout Hasher) {
hasher.combine(webFeedID)
hasher.combine(accountID)
}
// MARK: - Equatable