John Estropia
5777831565
WIP: make fetching methods throwable
2019-01-11 19:52:12 +09:00
John Estropia
8409a13289
Merge pull request #288 from ruslanskorb/list-monitor-number-of-objects-performance
...
[ListMonitor] Fix performance of `numberOfObjects()`.
2018-12-06 18:53:06 +09:00
Ruslan Skorb
a9a73fa5c4
[ListMonitor] [numberOfObjects()] Return count of fetchedObjects.
...
Casting `fetchedObjects` to `NSArray?` has better performance.
https://github.com/JohnEstropia/CoreStore/pull/288
2018-12-06 10:56:30 +02:00
Ruslan Skorb
6f655951aa
[ListMonitor] [numberOfObjects()] Calculate the number of objects in all sections by summing the number of objects stored in NSFetchedResultsSectionInfo.
...
There is a performance problem in Swift when calling `count` method on an array with a large number of fetched objects. It requires casting the array between Objective-C and Swift, that is pretty slow.
2018-11-24 16:24:14 +02:00
Ruslan Skorb
ff8fbae568
[ListMonitor] [subscript(safeSectionIndex:safeItemIndex:)] Use subscript(indexPath:) after the validation of sectionIndex and itemIndex to get an object.
...
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.
2018-11-24 16:23:36 +02:00
John Estropia
45e110755d
deleted unnecessary Equatable and Hashable custom implementations
2018-09-19 11:06:19 +09:00
John Estropia
1ad233ca9d
Swift 4.2 support
2018-09-15 12:56:08 +09:00
John Rommel Estropia
c8b1c4358f
Fix bug where ListMonitor sectionIndexTitles are not updated on refetch ( fixes #218 )
2018-03-10 21:08:40 +09:00
John Rommel Estropia
645034dde5
keyPath utilities for SectionBy clauses
2017-09-24 10:38:17 +09:00
John Rommel Estropia
aff966aac9
WIP: Query builders
2017-07-05 08:45:10 +09:00
John Estropia
5f5000218a
Merge branch 'develop' into prototype/Swift_3_2
...
# Conflicts:
# CoreStoreDemo/CoreStoreDemo/List and Object Observers Demo/Palette.swift
# Sources/Value.swift
2017-06-23 12:43:03 +09:00
John Estropia
801cf8d9f0
Fixed ListMonitor bug for CoreStoreObjects where ListObservers don't get update notifications
2017-06-14 17:37:46 +09:00
John Estropia
f618617053
work around issue that crashes the Swift 3.2 compiler ( fixes #171 )
2017-06-08 20:18:50 +09:00
John Estropia
7f9a915d71
WIP: Swift 3.2
2017-06-07 20:07:43 +09:00
John Rommel Estropia
91fda01071
WIP: readme
2017-05-15 08:51:31 +09:00
John Estropia
e0abb9b0af
Merge branch 'develop' into corestore4_develop
...
# Conflicts:
# CoreStore.podspec
# Sources/CoreStoreImportableAttributeType.swift
# Sources/CoreStoreQueryableAttributeType.swift
# Sources/Info.plist
# Sources/NSManagedObjectModel+Setup.swift
2017-05-10 19:11:01 +09:00
John Estropia
fce5d2f301
Flatten file directories ( fixes #159 )
2017-05-10 12:42:20 +09:00