Skip to content

Use wasmer::TypedFunction instead of wasmer::Function #249

Description

@MarcGuiselin

The documentation for wasmer::Function::new_with_env reads "If you know the signature of the host function at compile time, consider using Function::new_typed_with_envfor less runtime overhead.

Besides improving performance, it also removes the boiler plate passing param slices and unwrapping return values.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions