News for hackers. Stuff that matters.
Re:Using C++ as a scripting language, part 8 by binary132 on Saturday July 29, 2023 @09:11AM (#36919963)
If I’m not mistaken, Cling is an LLVM-based JIT compiler, so it really should be performing close to the same level as an ahead-of-time Clang-compiled binary executable. Perhaps what you are noticing is JIT latency (from compiling on the fly.)
Re:Using C++ as a scripting language, part 8 by WanderPanda on Saturday July 29, 2023 @11:23AM (#36921146)
Maybe it is because of Debug vs. Release mode (and the optimization level coming with it) but I see a speed difference on the order of 10-100x vs. Release mode GCC
Re:Using C++ as a scripting language, part 8 by gpderetta on Saturday July 29, 2023 @02:04PM (#36922849)
For heavily template code, a 10x-100x speed difference between -O0 and -O3 is not surprising in my experience.

The cost of compiling at -O3 is going to affect interactive use of course though.