Skip to content

Conversation

@the-mikedavis
Copy link

This can be used to stream the formatted output, avoiding the buffering of ram_file in format/1. For example using this library with Cowboy, you could use cowboy_req:stream_body/3 with the iodata passed to the formatting callback in order to avoid buffering.

Also see rabbitmq/rabbitmq-server#14885, rabbitmq/rabbitmq-server#14865


WIP as I'd like to gather some metrics on memory usage. Also this should probably be added to prometheus_protobuf_format for consistency.

This can be used to stream the formatted output, avoiding the buffering
of `ram_file` in `format/1`. For example using this library with Cowboy,
you could use `cowboy_req:stream_body/3` with the iodata passed to the
formatting callback in order to avoid buffering.
@the-mikedavis
Copy link
Author

I folded this into #196 since the changes overlap

@the-mikedavis the-mikedavis deleted the md/format-into branch November 6, 2025 19:23
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.

1 participant