All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Security
Security
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

Workers - Improved memory efficiency for WebAssembly Workers

1y ago

Source

CloudflareWorkers - Improved memory efficiency for WebAssembly Workerscloudflare.com
Snippet from the RSS feed
FinalizationRegistry is now available in Workers. You can opt-in using the enable_weak_ref compatibility flag. This can reduce memory leaks when using WebAssembly-based Workers, which includes Python Workers and Rust Workers . The FinalizationRegistry works by enabling toolchains such as Emscripten and wasm-bindgen to automatically free WebAssembly heap allocations. If you are using WASM and seeing Exceeded Memory errors and cannot determine a cause using memory profiling , you may want to enable the FinalizationRegistry. For more information refer to the enable_weak_ref compatibility flag documentation.

You might also wanna read

Comments

Sign in to join the conversation.

No comments yet. Be the first.