Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Quantitative Finance · Glossaire

Qu'est-ce que « Small-buffer optimisation, fixed-capacity container » ?

Aussi appelé : small-buffer optimisation · fixed-capacity container

Definition 6.6 Low-Latency Software · Chapitre 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.

Lire dans le chapitre →