title: UI freezes on tableview reloadData()
body: <p>I have simple dictionary project with over 35000 records in Realm model. When searching word from these records looking a little bit freeze in keyboard tapping. I think freeze going when I update my tableview with new records.</p>
  
  <pre class="lang-swift prettyprint-override"><code>import UIKit
  import RealmSwift
  
  class TestTableViewController: UIViewController, UITableViewDataSource, UITableViewDelegate, UISearchBarDelegate {
      @IBOutlet weak var searchBar: UISearchBar!
      @IBOutlet weak var tableView: UITableView!
      let realm = try! Realm()
      var myRealmObject: Results&lt;MyRealmObject&gt;!
  
      override func viewDidLoad() {
          super.viewDidLoad()
          myRealmObject = realm.objects(MyRealmObject.self).sorted(byKeyPath: "german", ascending: true)
      }
  
      func numberOfSections(in tableView: UITableView) -&gt; Int {
          return 1
      }
  
      func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
          return myRealmObject.count
      }
  
      func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
          let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath)
          cell.textLabel?.text = myRealmObject[indexPath.row].german
          return cell
      }
  
      func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {
          myRealmObject = realm.objects(MyRealmObject.self).filter("german beginswith[cd] %@", searchText)
          print("Objects count - ", myRealmObject.count)
  //        self.tableView.performSelector(onMainThread: Selector("reloadData"), with: nil, waitUntilDone: true)
          DispatchQueue.main.async {
              self.tableView.reloadData()
          }
      }
  }
  </code></pre>
  
  <p>If comment self.tableView.reloadData() and print result of Realm objects in console working without freezes. How I can perform my tableview.reload Data() ?</p>