← Back to release summary

Sync methods for SyncAccessHandle in File System Access API

Category
Offline / Storage
Type
No developer-visible change
Status
Enabled by default (Chrome 108)
Intent stage
Prepare to ship

WPT details: https://wpt.fyi/results/fs?label=master&label=experimental&aligned&view=subtest&q=accesshandle

Summary

Updates asynchronous methods (flush(), getSize(), truncate()) in SyncAccessHandle in File System Access API to synchronous methods. SyncAccessHandle currently has a mix of sync and async methods, hindering the performance and the usability, especially for applications porting c/c++ to Wasm. This update will bring consistency in the API usage and improve the performance for Wasm-based libraries.

Motivation

The mix of sync and async methods in SyncAccessHandle lowers the performance in Wasm-based applications, as Wasm currently does not support asynchronous calls and a workaround requires using an additional library. By making all methods synchronous, Wasm-based applications will not only have the improved performance but also will be able to use Posix-like, synchronous file API.

Standards & signals

Ecosystem

View on chromestatus.com