In my OS X application, which uses Core Data
my table view is very laggy while scrolling and I have only about 100+ rows there...I'm using Cocoa bindings with NSArrayController
to show my data in table view.
I have only one Entity with 13 attributes, but still that table view/scroll view is very laggy.
Is there some common bug / bad coding what causes that behavior? My CPU-usage is around 85% while I'm scrolling.
Anybody have any ideas why is that? I'm using Xcode 7 released version.
UPDATE:
Instruments look like this (I used it first time):
Update 2: Im using NSVisualEffectView and overriding allowsVibrancy to return true so I'm getting table views alternative row colors to be like this as in my another project Github- Debter
If I enable core animation layer for my view it helps a lot for scrolling, but my storyboard start do something weard stuff and I can't work well any UI-releated stuff anymore.
Without seeing the code of your UITableView
delegate
and data source
it is pretty hard to know the exact problem.
Some bad habits are:
UITableViewDataSource
methods or when the UITableViewCell
is being rendered.tableViewCellForIndexPath
or other data source methods.Some questions that might help you find the problem:
NSFetchedResultsController
? If your data set is long (although you mention is not) it could increase performance.NSOperationQueue
to limit your background tasks.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With