Skip to content

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

@EFanZh

Description

@EFanZh

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions