Writing Less Slow C, C++, and Assembly Code: A Practical Guide to Performance

2025-04-18
Writing Less Slow C, C++, and Assembly Code: A Practical Guide to Performance

This repository offers practical examples of writing efficient C and C++ code, covering topics from micro-kernels to parallel algorithms. It demonstrates how to leverage C++20 features and compiler optimizations to boost performance (e.g., speeding up trigonometry by 40x), and explores best practices for avoiding performance bottlenecks, such as efficient JSON handling, using STL associative containers, and choosing the right parallel programming model. The project also includes code examples for hardware acceleration using Assembly, CUDA, and FPGA, aiming to help developers write faster and safer code.

Development Parallel Programming