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

Interface files can depend on unnecessary module imports #460

Open
2 tasks
PaulBone opened this issue Apr 15, 2023 · 0 comments
Open
2 tasks

Interface files can depend on unnecessary module imports #460

PaulBone opened this issue Apr 15, 2023 · 0 comments
Labels
component: build The plzbuild tool component: compiler Concerning the compiler meta: triaged Has the issue been triaged yet? skill: mercury status: accepted A bug we intend to fix it. type: optimisation An optimisation
Milestone

Comments

@PaulBone
Copy link
Member

The build system will cause an interface file to depend on all the module imports included by the module whose interface is being built, rather than only those that interface items depend upon.

There's probably two steps here.

  • Make sure that building an interface file doesn't open typeres info it doesn't need (lazy open imports?)
  • do_make_dep_info should generate the minimal necessary subset of imports for typeres_import.
@PaulBone PaulBone added skill: mercury component: compiler Concerning the compiler meta: triaged Has the issue been triaged yet? status: accepted A bug we intend to fix it. type: optimisation An optimisation component: build The plzbuild tool labels Apr 16, 2023
@PaulBone PaulBone added this to the Modules Extra milestone Apr 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: build The plzbuild tool component: compiler Concerning the compiler meta: triaged Has the issue been triaged yet? skill: mercury status: accepted A bug we intend to fix it. type: optimisation An optimisation
Projects
None yet
Development

No branches or pull requests

1 participant