3 ms·
Good luck getting a high performance implementation of A=B+C without memory allocation out of a library.
by pklausler 10y ago
Good luck getting a high performance implementation of A=B+C without memory allocation out of a library.
- jheriko 10y agorolling your own is pretty easy, it is a shame that the C++ standard library is a dire wasteland of bad implementations. you are right that valarray will do heap allocations and making it work on the stack is a real ballache.
- whyever 10y agoThis is really not hard using expression templates.