Add comment in MessageContent lint disabilitation explaining why it should be enabled
@@ -87,8 +87,12 @@ impl<T> Transport for T where T: transport::Transport<Address, Message> + Clone
mod msginfo;
pub use msginfo::MsgInfo;
-/// Message body returned as part of handle message routine.
+// SignedPacket is 240 bytes in stack (192 + 24 + 24), which means 5 times more than
+// the next biggest variant, TaggedPacket (48), and the impossibility of inlining.
+// Boxing PublicKey is most probably a net performance improvement. However,
+// a profile must validate it's hot enough to justify the ergonomic drawback.
#[allow(clippy::large_enum_variant)]
+/// Message body returned as part of handle message routine.
pub enum MessageContent {
Announce,
Keyload,
