mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
[PR #157] [MERGED] Use dynamicCast() to cast fetchedObjects to [T]? without checking the type.
#472
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/JohnEstropia/CoreStore/pull/157
Author: @ruslanskorb
Created: 3/24/2017
Status: ✅ Merged
Merged: 3/28/2017
Merged by: @JohnEstropia
Base:
develop← Head:fetched-objects-dynamicCast📝 Commits (1)
f055c54[ListMonitor] UsedynamicCast()to castfetchedObjectsto[T]?without checking the type.📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
Sources/Observing/ListMonitor.swift(+2 -2)📄 Description
Type checking takes a time. So there is a performance problem when casting a large number of fetched objects to an array of a certain type using the operator
as?.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.