This code append the relative_package_path every time the index is accessed, taking up memory:
| ifnamespaceinself.registered_paths: |
| self.registered_paths[namespace].append(relative_package_path) |
| else: |
| self.registered_paths[namespace] = [relative_package_path] |
Should be a collections.defaultdict(set) instead.
This code append the relative_package_path every time the index is accessed, taking up memory:
dash/dash/dash.py
Lines 316 to 319 in 61b0545
Should be a
collections.defaultdict(set)instead.