mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
[PR #287] [MERGED] [ListMonitor] Fix performance of subscript(safeSectionIndex:safeItemIndex:).
#486
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/287
Author: @ruslanskorb
Created: 11/24/2018
Status: ✅ Merged
Merged: 12/6/2018
Merged by: @JohnEstropia
Base:
develop← Head:list-monitor-subscript-performance📝 Commits (1)
ff8fbae[ListMonitor] [subscript(safeSectionIndex:safeItemIndex:)] Usesubscript(indexPath:)after the validation ofsectionIndexanditemIndexto get an object.📊 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 getting an object from the Objective-C array with a large number of objects using subscript. 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.