Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

table diff patch algorithm for UITableView

I am using UITableView to display a set of objects which are persisted on a server. Server notifies client to pull out the new set whenever it detects a change. I don't like to reload the entire table. I need an algorithm to patch the old table with insert,move,reload and delete operations so it would transform into the new set. What would be the simplest algorithm to accomplish this?

like image 805
Osman Alpay Avatar asked Feb 03 '26 03:02

Osman Alpay


1 Answers

i should have googled it first, for those who end up here for answers;

https://github.com/khanlou/NSArray-LongestCommonSubsequence

like image 73
Osman Alpay Avatar answered Feb 05 '26 20:02

Osman Alpay