Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

The Dark Side of .reserve()

Автор: Logan Smith

Загружено: 2023-08-17

Просмотров: 228515

Описание:

.reserve(...) is a method you might've seen in the API of your favorite dynamic array (or hash table or whatnot), and it's an excellent tool for making simple, impactful performance optimizations while you are building up data structures. But just like all tools, it has sharp edges. In this video we'll dive into where .reserve() can make your performance sing--and where it can be devastating.

Special guest appearances from Unreal Engine, spline points, big-O notation, amortized constant complexity, exponential growth, C++ STL algorithms, good Rust design choices, and me forgetting to use the oldSize variable in the call to .resize() on the next line (but it's okay, I use it later on).

Starring:
std::vector::reserve - https://en.cppreference.com/w/cpp/con...
Vec::reserve_exact - https://doc.rust-lang.org/std/vec/str...
TArray - https://docs.unrealengine.com/5.2/en-...
USplineComponent - https://docs.unrealengine.com/5.2/en-...

FBVector (great docs on selecting a good growth factor) - https://github.com/facebook/folly/blo...

Contributing to Unreal - https://docs.unrealengine.com/5.2/en-...

I use the amazing Manim library for animating these videos, and I edit them with Blender and Audacity.
https://www.manim.community/
https://www.blender.org/
https://www.audacityteam.org/

The Dark Side of .reserve()

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Конструкторы сломаны

Конструкторы сломаны

Rust Functions Are Weird (But Be Glad)

Rust Functions Are Weird (But Be Glad)

Arc instead of Vec? | Prime Reacts

Arc instead of Vec? | Prime Reacts

Два способа динамической отправки

Два способа динамической отправки

Cursed C++ Casts

Cursed C++ Casts

Vibe Coding Is The WORST IDEA Of 2025

Vibe Coding Is The WORST IDEA Of 2025

Rust's Witchcraft

Rust's Witchcraft

but what is 'a lifetime?

but what is 'a lifetime?

Ходы сломаны

Ходы сломаны

НЕВЕРОЯТНО БЫСТРЫЕ оптимизации C++

НЕВЕРОЯТНО БЫСТРЫЕ оптимизации C++

The Strange Math That Predicts (Almost) Anything

The Strange Math That Predicts (Almost) Anything

Ржавчина — это не C

Ржавчина — это не C

Choose the Right Option

Choose the Right Option

Rust 2025: $400K Salaries, C++, AI & Why It's Not Everywhere (Yet) — Jon Gjengset Explains

Rust 2025: $400K Salaries, C++, AI & Why It's Not Everywhere (Yet) — Jon Gjengset Explains

A Simpler Way to See Results

A Simpler Way to See Results

What Makes Rust Different?

What Makes Rust Different?

Zig is better than Rust (sometimes)

Zig is better than Rust (sometimes)

Полиморфизм на основе Rust ⚡️ с чертами

Полиморфизм на основе Rust ⚡️ с чертами

why rust libraries may never exist.

why rust libraries may never exist.

Этот алгоритм на 1 606 240% БЫСТРЕЕ

Этот алгоритм на 1 606 240% БЫСТРЕЕ

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]