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

Stub Loading is Slow and Repetitive #56

Open
BradenM opened this issue Sep 29, 2019 · 0 comments
Open

Stub Loading is Slow and Repetitive #56

BradenM opened this issue Sep 29, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@BradenM
Copy link
Owner

BradenM commented Sep 29, 2019

Currently, loading stubs requires validating the same stubs multiple times. Since the stub JSON file is read from on each validation, this is a very slow and repetitive process. When you have ~5 or more stub packages, executing micropy tends to have a very noticeable delay.

A much faster solution would be to only validate when a stub is added (not just loaded from the stubs folder) then create and save an md5 hash of the stub info file along with what type of stub it is. We can then "validate" and determine existing stubs by reading from this one file, rather than re-validating them all.

@BradenM BradenM added enhancement New feature or request bug Something isn't working and removed bug Something isn't working labels Sep 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant