Skip to content

Dash.registered_paths appending package path on every index access. #441

Description

@T4rk1n

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

if namespace in self.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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions