Project

General

Profile

Actions

Feature #64677

open

Feature #63663: mds,client: add crash-consistent snapshot support

Enhance Message with a generic method that can be used to delay payload decoding

Added by Leonid Usov 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Component(FS):
Labels (FS):
Pull request ID:

Description

Message payload has a serialized version of the message content. Using the standard `decode_payload` suggests that the message should have a separate member for the deserialized form, which creates unnecessary duplication of the data in memory.

A technique can be used that delays decoding until the message needs to be processed, at which point the decoding is performed into an external variable that can be then utilized directly without an extra copy. Today this means duplicating some of the error handling that is performed by the generic Message code.

This task is looking to augment the Message to provide generic decoding and error handling while allowing for the delayed decoding strategy.

No data to display

Actions

Also available in: Atom PDF