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:
parent
121ecd1927
commit
b61cd3a869
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue