Skip to content

v1.03

Choose a tag to compare

@schulzchristian schulzchristian released this 25 Mar 18:37
· 3 commits to main since this release

Knowledge Base: 30 Performance Optimization Entries

Seed the knowledge base with 30 expert entries covering C++ and Python performance optimization techniques.

C++ (entries 004–018)

  • Cache efficiency: SoA vs AoS, hot-cold splitting, loop tiling
  • Branch & instruction optimization: branchless programming, SIMD vectorization, compiler intrinsics
  • Memory management: small buffer optimization, move semantics, reserve/preallocate, mmap, arena-style hash maps
  • Compiler techniques: constexpr, PGO + LTO
  • Concurrency: false sharing avoidance
  • API design: std::string_view

Python (entries 019–033)

  • Vectorization & JIT: NumPy vectorization, Numba JIT, Cython
  • Memory reduction: slots, generators, array module, mmap
  • Data structures: dict/set O(1) lookup, deque for queues
  • Patterns: preallocation, string join, local variable caching, itertools pipelines, struct packing
  • Parallelism: multiprocessing to bypass GIL