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

Optimising selective imports #64

Open
eduardo-imadeira opened this issue Apr 9, 2024 · 1 comment
Open

Optimising selective imports #64

eduardo-imadeira opened this issue Apr 9, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@eduardo-imadeira
Copy link
Collaborator

import b from a.ae
import c from a.ae

Currently, the example above is parsing a.ae twice. Ideally, we would only want to parse it once and store that information in cache in the case of needing it more than once.

@eduardo-imadeira eduardo-imadeira added enhancement New feature or request good first issue Good for newcomers labels Apr 9, 2024
@alcides
Copy link
Owner

alcides commented Apr 10, 2024

In order to implement this, we would need to load all the imports, merge the symbols from files and then perform the import.

Instead, maybe we could go for something like

import b, c from a.ae

or

from "a.ae" import b, c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants