Encapsulate NackOptions in Box
Encapsulates MessageHandle, which has nack_options added. I have a todo to wrap nack_options in Box, will take this up as a separate issue.
Originally posted by @vaibhavtiwari33 in https://github.com/numaproj/numaflow/pull/3455#discussion_r3500527296
Hi @vaibhavtiwari33, I'd like to work on this. I have a local patch changing Message::nack_options to Option<Box<NackOptions>>.
On aarch64, this reduces Message from 272 to 232 bytes and the relevant Tokio mpsc block from 8,992 to 7,712 bytes.
One nuance: the existing large_enum_variant allow still cannot be removed (SegmentWriteMessage becomes 240 bytes vs. 32 bytes), and removing it would require boxing MessageHandle itself on the WAL write path. I plan to keep that allow and limit the PR to the issue's storage change, conversions, and a pointer-size regression test.
Does that match the intended scope?
Could I be assigned this??am familiar with the code structure since
There are some additional changes that I need to make for per-message nack after which will assign this issue accordingly to avoid merge conflicts.
@vaibhavtiwari33 Are we ready to implement this??
I'd like to take this. I've boxed Message.nack_options to Option<Box