Skip to content
Snippets Groups Projects
  1. Mar 29, 2021
    • Florian Fischer's avatar
      [Debug.hpp] wrap actual logging in log-level constexpr · 3626bdf4
      Florian Fischer authored
      According to godbolt.org
      
      do { if constexpr(false) { break; } int foo = 42; foo++; } while(false);
      
      does result in code generation for gcc 10.2 and clang 11.0.1 as opposed to
      
      do { if constexpr(false) { int foo = 42; foo++; }} while(false);
      
      which does not result in code generation for both gcc and clang.
      
      And this simple change did indeed significantly increases our echo
      benchmark performance. We were probably creating a lot of std::stringstream
      objects without ever using them.
      3626bdf4
  2. Mar 24, 2021
  3. Mar 23, 2021
  4. Mar 22, 2021
  5. Mar 19, 2021
  6. Mar 18, 2021
  7. Mar 17, 2021
Loading