Most Malleable Memory Management Method in C++ - Björn Fahller - C++ on Sea 2023

  Рет қаралды 6,189

cpponsea

cpponsea

7 ай бұрын

cpponsea.uk/
---
Most Malleable Memory Management Method in C++ - Björn Fahller - C++ on Sea 2023
Examples for wanting to manage the memory usage of your program can be to reduce the cost of heap allocations, improve locality of reference, or maybe reduce heap fragmentation.
Regardless of reason, PMR, Polymorphic Memory Resource, is available since C++17, and makes your life much easier.
I will show you...
- Tools and techniques for analysing the memory usage of your program.
- How PMR makes memory management easier.
- How to use PMR with the standard library types.
- How to make your own types use PMR.
- Advice, and pitfalls to avoid, on your quest to improving the memory usage of your program.
---
Slides: github.com/philsquared/cppons...
Sponsored by think-cell: www.think-cell.com/en/
---
Björn Fahller
Björn Fahller is a senior developer at Net Insight, where he is currently coordinating the technical work of teams developing electronics, FPGA, embedded software, distributed control systems and web applications. He is keen on improving the skills of the teams he works in, by learning, and by sharing knowledge. Björn has worked full time with software development since 1994, mostly for networking products, and primarily in C++. He has also created the popular open source C++ libraries, Trompeloeil for mocking, and strong_type for type safety.
---
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
---
KZbin Videos Filmed, Edited & Optimised by Digital Medium: events.digital-medium.co.uk
#cpp​ #cpponsea​ #cppprogramming

Пікірлер: 8
@lucaleoni7914
@lucaleoni7914 7 ай бұрын
Basically the standard has finally implemented memory arenas and gave them the name of PMR, neat!
@anon_y_mousse
@anon_y_mousse 7 ай бұрын
Definitely something to be careful with, but something we should probably all do more of when testing.
@ckalandk3263
@ckalandk3263 7 ай бұрын
Great talk!
@JohnDlugosz
@JohnDlugosz 7 ай бұрын
Re your closing point: PMR containers never change their allocator. So how does PMR reprogram the behavor in the container templates which, for any allocator that's not a PMR*, has rules about when it replaces the allocator?
@ZeroPlayerGame
@ZeroPlayerGame 6 ай бұрын
There's new std::allocator_traits::propagate_on_container_move_assignment flag, which is just false for std::polymorphic_allocator.
@simonhrabec9973
@simonhrabec9973 7 ай бұрын
0:42 If no one is gonna praise you, you gotta do it yourself haha ;)
Would you like a delicious big mooncake? #shorts#Mooncake #China #Chinesefood
00:30
FOOTBALL WITH PLAY BUTTONS ▶️ #roadto100m
00:29
Celine Dept
Рет қаралды 75 МЛН
Miracle Doctor Saves Blind Girl ❤️
00:59
Alan Chikin Chow
Рет қаралды 52 МЛН
Typical C++, but Why? - Björn Fahller - C++ on Sea 2023
50:49
Nokia 3310 versus Red Hot Ball
0:37
PressTube
Рет қаралды 3,8 МЛН
Apple watch hidden camera
0:34
_vector_
Рет қаралды 53 МЛН
Apple, как вас уделал Тюменский бренд CaseGuru? Конец удивил #caseguru #кейсгуру #наушники
0:54
CaseGuru / Наушники / Пылесосы / Смарт-часы /
Рет қаралды 4,6 МЛН
Топ-3 суперкрутых ПК из CompShop
1:00
CompShop Shorts
Рет қаралды 379 М.
Xiaomi Note 13 Pro по безумной цене в России
0:43
Простые Технологии
Рет қаралды 2 МЛН