Skip to content

Reduce instruction fetch overhead #19

Open
@explodingcamera

Description

@explodingcamera

Right now, wasm modules are stored in an Rc (as they are stored alongside host "modules), storing the instructions separately should bring a lot of speed improvements and maybe improve cache prefetching (?). The fastest way would be raw pointers, but I'd like to keep the codebase unsafe free.

Update: preliminary tests showed no tangible perf improvements from accessing instructions without indirection.
Update 2: bound-checking instructions adds around a 5% overehead in initial testing

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions