Skip to content

send less data to build system web interface clients #24651

@mlugg

Description

@mlugg

Split from #24588.

Currently, when using zig build --webui, connected clients receive data about the whole compilation over the WebSocket connection. In particular, when --time-report is passed, clients are sent -- and will store -- the full time report for every step in the compilation, which may involve a large amount of data.

Instead, to save memory and WebSocket bandwidth, large chunks of data should probably only be sent on-demand. For instance, clients should by default only be told whether or not time reports currently exist for each step; the actual time report should be sent to clients only when they request it.

This also applies to the fuzzer: clients should only receive updates about fuzz testing status when the user opens the corresponding fuzz test in the UI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSolving this issue will likely involve adding new logic or components to the codebase.zig build systemstd.Build, the build runner, `zig build` subcommand, package management

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions