DVFloatingWindow icon indicating copy to clipboard operation
DVFloatingWindow copied to clipboard

TableView optimization

Open dvor opened this issue 12 years ago • 1 comments

  • [x] don't reload table if it's hidden
  • [ ] if table is visible, reload it every N milliseconds (to avoid freezing in case of log spam)
  • [x] reload table frame only at the end of window resize
  • [ ] use time profiler and see what else can be done

dvor avatar Aug 12 '13 23:08 dvor

Hi, I think I might have a problem due to log spam and table view reloading :

2015-03-09 10:39:04.739 ARFreeFlight[5276:1964197] *** Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit/UIKit-3318.16.25/UITableView.m:1377 2015-03-09 10:39:49.217 ARFreeFlight[5276:1964197] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'attempt to insert row 260 into section 0, but there are only 3 rows in section 0 after the update'

This exception is thrown from (line 389 in DVFloatingWindow.m) [self.tableView insertRowsAtIndexPaths:@[path] withRowAnimation:UITableViewRowAnimationAutomatic];

Thanks in advance, Djavan

djavan-bertrand avatar Mar 09 '15 09:03 djavan-bertrand