mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
[PR #288] [MERGED] [ListMonitor] Fix performance of numberOfObjects().
#490
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/288
Author: @ruslanskorb
Created: 11/24/2018
Status: ✅ Merged
Merged: 12/6/2018
Merged by: @JohnEstropia
Base:
develop← Head:list-monitor-number-of-objects-performance📝 Commits (2)
6f65595[ListMonitor] [numberOfObjects()] Calculate the number of objects in all sections by summing the number of objects stored inNSFetchedResultsSectionInfo.a9a73fa[ListMonitor] [numberOfObjects()] ReturncountoffetchedObjects.📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
Sources/ListMonitor.swift(+1 -1)📄 Description
There is a performance problem in Swift when calling
countmethod on an array with a large number of fetched objects. It requires casting the array between Objective-C and Swift, that is pretty slow.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.