GitHub - ashvardanian/less_slow.cpp: Learning how to write "Less Slow" code in C++ 20, C 99, CUDA, PTX, & Assembly, from numerics & SIMD to coroutines, ranges, exception handling, networking and user-space IO
Learning to Write Less Slow C, C++, and Assembly Code
The benchmarks in this repository don't aim to cover every topic entirely, but they help form a mindset and intuition for performance-oriented software design.
It also provides an example of using some non-STL but de facto standard libraries in C++, importing them via CMake, and compiling from source.
For higher-level abstractions and languages, check out less_slow.rs and less_slow.py.
Much modern code suffers from common pitfalls, such as bu...
Read more at github.com