Closed kurko closed 8 years ago
It seems that type inference is the culprit here (as it usually is). Adding a explicit ResourceIdentifier
type for the link
parameter fixes this:
let targetResources = linkage.flatMap { (link: ResourceIdentifier) in
return self.resourcePool.filter { $0.resourceType == link.type && $0.id == link.id }
}
I've pushed an update. Can you check if this is solved?
Yes. I'll check.
When I compiled using the following line, I discovered that a Spine function is at the top of the list of things taking the longest.
Not sure why it's duplicated, though, but the times are different...
Not sure how to fix it, just thought I'd share the finding.