Популярное

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

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

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

Топ запросов

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

The Dark Side of .reserve()

Автор: Logan Smith

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

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

Описание:

.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’s most complicated features explained

Rust’s most complicated features explained

Tear Down the Fences! 🚧 Solving LeetCode 2975 Maximum Square Area

Tear Down the Fences! 🚧 Solving LeetCode 2975 Maximum Square Area

but what is 'a lifetime?

but what is 'a lifetime?

Rust Functions Are Weird (But Be Glad)

Rust Functions Are Weird (But Be Glad)

Rust and the price of ignoring theory

Rust and the price of ignoring theory

Cursed C++ Casts

Cursed C++ Casts

Использовать дугу вместо вектора

Использовать дугу вместо вектора

why rust libraries may never exist.

why rust libraries may never exist.

Rust is not a faster horse

Rust is not a faster horse

A Simpler Way to See Results

A Simpler Way to See Results

Ходы сломаны

Ходы сломаны

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

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

ТЫ НИЧЕГО НЕ ЗНАЕШЬ ПРО ТЕКСТУРЫ В ИГРАХ

ТЫ НИЧЕГО НЕ ЗНАЕШЬ ПРО ТЕКСТУРЫ В ИГРАХ

Debian: САМЫЙ СТАБИЛЬНЫЙ Linux и ТЁМНАЯ История Создателя

Debian: САМЫЙ СТАБИЛЬНЫЙ Linux и ТЁМНАЯ История Создателя

Rust Interior Mutability - Sneaking By The Borrow Checker

Rust Interior Mutability - Sneaking By The Borrow Checker

Arc instead of Vec? | Prime Reacts

Arc instead of Vec? | Prime Reacts

Why AI Chess Bots Are Virtually Unbeatable (ft. GothamChess) | WIRED

Why AI Chess Bots Are Virtually Unbeatable (ft. GothamChess) | WIRED

Why I Chose Rust Over Zig

Why I Chose Rust Over Zig

Improve your Rust APIs with the type state pattern

Improve your Rust APIs with the type state pattern

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



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



Контакты для правообладателей: infodtube@gmail.com