Skip to content

function inline #10

Open
Open

Description

@Horcrux7

The current compiler of Wasm code to native machine code does not have optimizing like the JIT in Java. This means there is no code optimizing like the inline of functions. That JWebAssembly must already do this function inline at creating of the Wasm file.

Code samples that should JWebAssembly should optimize are welcome.

Activity

  1. Frontrider commented on Sep 7, 2020

    @Frontrider

    It could piggiback on this tool, used by a lot of the compilers.
    https://github.com/WebAssembly/binaryen

    There is a wasm to wasm optimizer in there.

  2. Frontrider commented on Sep 7, 2020

    @Frontrider

    #9 may be related.

  3. Horcrux7 commented on Sep 7, 2020

    @Horcrux7
    MemberAuthor

    Yes, this tool can show some optimization. But I think this tool does not know any over the original program. The optimization will be limited.

  4. Frontrider commented on Sep 9, 2020

    @Frontrider

    Welp. I hope it still matters for something. It can also have an interesting side effect where you could use this tool as a java to javascript transpiler, by going through webassembly.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions