Lightning Talk: Multiple-Include Optimization in C++ - Elliot Goodrich - C++ on Sea 2023

Ғылым және технология

cpponsea.uk/
---
Lightning Talk: Multiple-Include Optimization in C++ - Elliot Goodrich - C++ on Sea 2023
How compilers implement the multiple-include optimization to skip unnecessary include directives
---
Slides: github.com/philsquared/cppons...
Sponsored By think-cell: www.think-cell.com/en/
---
Elliot Goodrich
A C++ developer interested in performance, build speed, and clean code
---
C++ on Sea is an annual C++ and coding conference, in Folkestone, in the UK.
- Annual C++ on Sea, C++ conference: cpponsea.uk/
- 2023 Program: cpponsea.uk/2023/schedule/
- Twitter: / cpponsea
---
KZread Videos Filmed, Edited & Optimised by Digital Medium: events.digital-medium.co.uk
#cpp​ #cpponsea​ #cppprogramming​

Пікірлер: 6

  • @anon_y_mousse
    @anon_y_mousse8 ай бұрын

    I pretty much always use the #ifndef form of the include guard and never put comments above it or below it. I don't tend to use #pragma once because, as mentioned, not every compiler supports it and I have to work with older hardware enough where it isn't available in nearly all native compilers for such hardware, as well as not in C which I use more than C++ on older hardware. Although, I can't wait for modules to be finished because I'd love to use those where I can.

  • @irfanjames6551
    @irfanjames65517 ай бұрын

    I don't get it. Problem at 1:14 and Optimised Code at 1:16 are the same

  • @Adowrath

    @Adowrath

    7 ай бұрын

    This isn't about problem/optimized code. The first timestamp is just an example file, the second timestamp shows the maximally allowed version that doesn't break the optimization.

  • @perfectionbox
    @perfectionbox7 ай бұрын

    *ahem* precompiled headers

  • @Zekses
    @Zekses7 ай бұрын

    Not sure what I was supposed to learn here. There's nothing about actually optimizing here. Just include guard description

  • @Adowrath

    @Adowrath

    7 ай бұрын

    "Make sure to never put other directives before the ifndef or after the endif, otherwise your compile time might get slower." is pretty much all.

Келесі