All books

Professional

Apps About Coach Log in Start reading

Quantitative Finance · Glossary

What is Flyweight codec?

Definition 16.1 Low-Latency Software · Chapter 16 — Protocols II: Binary Exchange Protocols

A flyweight codec reads and writes a message in place: a small object that holds only a pointer to the message’s bytes and decodes a field from its fixed offset when the field is asked for, so that decoding a message copies nothing and costs nothing for the fields not read.

Read in context →