3 ms·
The author of boost.context did some benchmarking[1] and found that get/setcontext was an order of magnitude slower than a custom solution. Whether this matters
by vinkelhake 13y ago
The author of boost.context did some benchmarking[1] and found that get/setcontext was an order of magnitude slower than a custom solution. Whether this matters is an entirely different question, but it's clear that get/setcontext has some overhead.
[1] http://www.boost.org/doc/libs/1_54_0/libs/context/doc/html/context/performance.html http://www.boost.org/doc/libs/1_54_0/libs/context/doc/html/c...
- cygx 13y agoSee also the notes on various implementation mechanisms of libcoro ( http://cvs.schmorp.de/libcoro/coro.h http://cvs.schmorp.de/libcoro/coro.h )