paint-brush
Experimenting with Small Buffer Optimization for C++ Lambdasby@buckaroo.pm
5,231 reads
5,231 reads

Experimenting with Small Buffer Optimization for C++ Lambdas

by Buckaroo - C/C++ Package Manager3mSeptember 19th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

We implemented <code class="markup--code markup--p-code">SmallFun</code>, an alternative to <code class="markup--code markup--p-code">std::function</code>, which implements <em>fixed-size capture optimization</em> (a form of small buffer optimization). Whilst <code class="markup--code markup--p-code">SmallFun</code> is a bit less generic than <code class="markup--code markup--p-code">std::function</code>, it is <strong>3–5x faster</strong> in some benchmarks.

Company Mentioned

Mention Thumbnail
featured image - Experimenting with Small Buffer Optimization for C++ Lambdas
Buckaroo - C/C++ Package Manager HackerNoon profile picture
Buckaroo - C/C++ Package Manager

Buckaroo - C/C++ Package Manager

@buckaroo.pm

L O A D I N G
. . . comments & more!

About Author

Buckaroo - C/C++ Package Manager HackerNoon profile picture
Buckaroo - C/C++ Package Manager@buckaroo.pm

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Lobste
Gerikson
Aryan
Lobsters