Skip to content

Optimize SimpleFunctionMap #83

@sdwfrost

Description

@sdwfrost

Is your feature request related to a problem? Please describe.

Running a small function map example using SimpleFunctionMap is slower than a hand-coded loop by a reasonable margin.

Full examples:

Describe the solution you’d like

Options - perhaps at the cost of fewer safeguards - to improve the speed of the SimpleFunctionMap.

Describe alternatives you’ve considered

I haven't done an in-depth profile, but it seems like pre-allocating output for this example (as in my code) may help.

Metadata

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