Skip to content

Conversation

@jk-ozlabs
Copy link
Member

Be kinder on memory usage by performing per-part reads, and print speed data in the host example.

mkj added 2 commits August 19, 2025 10:23
Previously the host implementation would read the entire file at once,
which could run out of memory. Instead read individual chunks.

A Host::read() implementation can implement readahead/caching if
desired.

Signed-off-by: Matt Johnston <[email protected]>
The pldm-file-host example also uses env_logger now with a default level
of info. RUST_LOG=trace can be set for debug purposes.

[Minor formatting change from Jeremy Kerr <[email protected]>]

Signed-off-by: Matt Johnston <[email protected]>
Signed-off-by: Jeremy Kerr <[email protected]>
@mkj mkj merged commit 09f1f25 into CodeConstruct:main Aug 19, 2025
4 checks passed
@jk-ozlabs jk-ozlabs deleted the pr/pldm-file branch August 19, 2025 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants