Skip to content

Only form import stubs for referenced imports. #13

@graydon

Description

@graydon
Contributor

Currently we emit an import stub for every item in an imported module tree.
This is wasteful. Most imported items are never going to be referenced by most
compilation units that reference them; there's no need to form import stubs for
the unreferenced ones.

Fixing this is a matter of a small table in semant full of 'node->referenced'
flags noted while resolving.

Activity

graydon

graydon commented on Jun 28, 2010

@graydon
ContributorAuthor

A small matter of 269 lines of support code, sure. So much for 'easy'. Ah well. Closed.

graydon

graydon commented on Jun 28, 2010

@graydon
ContributorAuthor

Once more with feeling. Closed by e1f6749.

18 remaining items

added 2 commits that reference this issue on Dec 4, 2023
added a commit that references this issue on Dec 5, 2023
added a commit that references this issue on Dec 5, 2023
added a commit that references this issue on Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @graydon

        Issue actions

          Only form import stubs for referenced imports. · Issue #13 · rust-lang/rust