Skip to content

Consider inlining Poll::map, Poll::map_ok and Poll::map_err #101080

Closed

Description

I noticed that in one of my project, inlining Poll::map manually reduces some binary size, then I noticed Poll::map is not marked #[inline]. Since both Option::map and Result::map are marked #[inline], I wonder whether this is an oversight. I failed to reproduce the binary size reduction effect with an example code, but maybe the reason behind inlining Option::map and Result::map also applies to Poll::map? How about Poll::map_ok and Poll::map_err?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions