Hello all!
Here is the summary of the last San Diego C++ Meetup, virtual meeting, took place on Wednesday, Nov 13 2024.
Link to the meetup event page here.
Recording uploaded to the San Diego C++ Meetup channel (sdcppmu)
The agenda:
- cppquiz fun – C++ Quiz – 297 – std::async, future .wait() vs .get()
- Recommending YT channel – “C++Next by Alex Dathskovsky”
- The Art of Writing Efficient Programs – chapter 12 – Design choices for Performance.
- Tip: transparent comparator/operators.
More details:
First, Alex’s YT channel mentioned above is something you should checkout. It’s fun, short episodes and packed with good information.
We mentioned few Design choices as mentioned in Fedor G. Pikus book: “The Art of Writing Efficient Programs: An advanced programmer’s guide to efficient hardware utilization and compiler optimizations using C++ examples”:
Chapter 12 discuss “Design for Performance”. We mentioned:
- Choosing APIs for performance. operator[] vs iterator interface, std::deque as an example to have better performance using iterator vs operator[].
- Using std::set<> in conjunction with std::vector<>, using member vs non-member functions.
- Lock vs non-lock interfaces, runtime vs Template, policy based classes. Also, using decorators (inheritance in this case).
- Redundant get-ters/set-ters and when these are actually could be useful.
- 13:34 – we mentioned std::span<>! 🙂
- Transparent operator – using std::less<> which is like std::less<void>, the benefit of using it, how can it save you from debugging subtle bugs.
This is for this session, thank you for reading!
Kobi