Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Quantitative Finance · Glossário

O que é Small-buffer optimisation, fixed-capacity container?

Também chamado de: small-buffer optimisation · fixed-capacity container

Definition 6.6 Low-Latency Software · Capítulo 6 — C++ for Latency I: Memory

A type with a small-buffer optimisation stores small contents inside the object and allocates only for large ones: the GNU implementation of std::string holds up to 15 characters inline. A fixed-capacity container always stores its elements inside the object, up to a capacity fixed at compile time, and refuses to grow beyond it.

Ler no capítulo →