Replies: 2 comments
-
@lucasw there's not a lot of example code available yet for dealing with MCAPs in an async context. For what you're doing, I'd guess using the Since the |
Beta Was this translation helpful? Give feedback.
-
I would add that if you have a local file available then using mmap will likely get you the best performance. Just ensure that you're using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to first scan through an mcap for all messages on a specific topic, and then read all message data out on all the topics for multi-gigabyte mcaps- this is currently working with MessageStream though I'd like to improve performance. My application is already using tokio, though possibly I'm doing something wrong with it to make it use up a lot of cpu.
examples/conformance_reader_async.rs
shows opening a file usingFile
instead of the memmap::Mmap, and then gets to parse_record, but I would have to check if the opcode isMESSAGE
then get the channellet channel = summary.channels.get(&header.channel_id)
to see what topic is was on?Beta Was this translation helpful? Give feedback.
All reactions