Skip to content
robertmorelliPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

luge

A Wasm-to-Wasm optimizer that helps single-call hot loops tier up.

V8 and SpiderMonkey only swap in optimized Wasm code at function entry, so a long loop inside a function that runs once can stay stuck in the baseline tier. luge moves each outermost loop into its own helper function that re-enters itself with return_call after 1024, 2048, 4096, … iterations, which gives the engine a chance to switch to optimized code partway through.

Written in Utu.

Usage

bun bin/luge.mjs input.wasm -o output.wasm [--threshold 1024]

Development

bun run build   # needs ../utu checked out next to this repo
bun run test

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages