Fix slow loading of large summaries.
- e.g 40 secs -> 0.5 secs - The whole summary was being scanned for every entry added. quadratic -> linear.
This commit is contained in:
parent
e84d7ac958
commit
7da50f5a29
1 changed files with 2 additions and 1 deletions
|
|
@ -281,7 +281,8 @@ class Summary:
|
|||
if entry_index <= y:
|
||||
self.scroll(0, -1)
|
||||
self._jobs_added_event.set()
|
||||
self.closest_placeholder_generator = None
|
||||
if self.is_loaded:
|
||||
self.closest_placeholder_generator = None
|
||||
|
||||
def on_file_added(self, path):
|
||||
full_path = os.path.join(self._root_path, path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue