← Back to release summary

WebAssembly Branch Hints

Category
WebAssembly
Type
Chromium catches up
Status
In developer trial (Behind a flag) (Chrome 137)
Intent stage
None

Summary

Improves the performance of compiled WebAssembly code by informing the engine that a particular branch instruction is very likely to take a specific path. This allows the engine to make better decisions for code layout (improving instruction cache hits) and register allocation. https://github.com/WebAssembly/branch-hinting/blob/main/proposals/branch-hinting/Overview.md

Motivation

This proposal has been voted to phase 4 in the WebAssembly CG in June 2024 and Chrome is preparing shipment of it.

Standards & signals

View on chromestatus.com