Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
T4rk1n opened this issue Oct 30, 2018 · 0 comments
Closed

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

T4rk1n opened this issue Oct 30, 2018 · 0 comments

Comments

@T4rk1n
Copy link
Contributor

T4rk1n commented Oct 30, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant