Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
client: actually stream messages in iter_messages (#114)
### Changelog Fixed: `iter_messages` and `iter_decoded_messages` would unneccessarily load the entire stream into RAM and sort them before yielding messages. ### Docs ### Description Currently we create a stream from data platform and construct a non-seeking reader around it to iterate through messages. However, (very unfortunately) the default arguments to `iter_decoded_messages()` require that the output stream be sorted, and the MCAP library does not know that data platform streams are already sorted, so it loads the entire stream into memory and sorts it before returning any messages. <table><tr><th>Before</th><th>After</th></tr><tr><td> <!--before content goes here--> </td><td> <!--after content goes here--> </td></tr></table> <!-- If necessary, link relevant Linear or Github issues. Use `Fixes: foxglove/repo#1234` to auto-close the Github issue or Fixes: FG-### for Linear isses. -->
- Loading branch information