@atpfm @siracusa I've just been listening to your Hyperspace table view discussion whilst putting together a basic AppKit example. I've started with 100,000 items in my table and it's smooth as silk when scrolling. I haven't done macOS development in some years now so I'm pretty rusty, was surprised I couldn't repro your issue. Any chance you kept the sample app demonstrating the problem?
I'm gonna try SwiftUI next, I imagine the issue will be easy to encounter there!
@Drarok @atpfm @siracusa I’ve not seen scrolling issues with NSTableView. My app currently has two big NSTableViews with 6.5 and 7.9 millions rows (view-based, auto-layout within each “cell”) that are loaded on-demand from a SQLite database. They’re very smooth yanking the thumb around (on an M1 Pro). It is slightly slower than when I was using NSCell, but it sounds like you have something else going on. I’d be interested to see an Activity Monitor sample from scrolling your app…
@mjtsai @Drarok Doing the NSCell version helped me find a case in my NSView-based version where an init() chain (through several subclasses) was failing to set the identifier on view, causing new ones to be created too often. Fixing that made the NSView-based version just about as fast as the NSCell-based one, so I went back to that. (The NSView-based one was nicer in a few other ways as well.)