Skip to content

elide calls to empty glue #25

Closed
Closed
@graydon

Description

@graydon

There are a few glue algorithms where we do structural recursion to generate
calls into sub-glue functions for each slot in a structured value
unnecessarily. We can discriminate between those structured values that have
sub-structure (or dtors) and those that are simple leaves, and omit calls to
their glue in some cases. For example, Trans.drop_slot on a structure like
@(int,int) will call a helper to 'drop' the interior bits of the exterior
tuple, despite the fact that it has no interesting substructure that needs
processing. We should notice this and avoid emitting the call (the called glue
is empty anyway).

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

    Issue actions