<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/anton-s-lesson-on-state-management-in-c--lkal1i9ui" -->

---
title: Anton’s Lesson on State Management in C++ | daily.dev
description: A detailed walkthrough of implementing cache-friendly state management in C++ using "large arrays of things" instead of traditional object-oriented...
canonical: https://daily.dev/posts/anton-s-lesson-on-state-management-in-c--lkal1i9ui
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Anton’s Lesson on State Management in C++ | daily.dev
og:description: A detailed walkthrough of implementing cache-friendly state management in C++ using "large arrays of things" instead of traditional object-oriented...
og:url: https://daily.dev/posts/anton-s-lesson-on-state-management-in-c--lkal1i9ui
og:image: https://api.daily.dev/og/posts/LKAL1i9uI.png
og:image:alt: Anton’s Lesson on State Management in C++
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Anton’s Lesson on State Management in C++

**[Game Engineering Podcast](https://daily.dev/sources/game_eng_podcast)** · 141 min read · 1 upvotes · 1 comments

## Summary

A detailed walkthrough of implementing cache-friendly state management in C++ using "large arrays of things" instead of traditional object-oriented hierarchies. The approach replaces pointers with indices, uses intrusive linked lists embedded within structs, and maintains a single flat array to avoid memory fragmentation. Key techniques include circular doubly-linked lists for tree traversal, parent/child/sibling index management, and eliminating dynamic allocations within game entities. The method reduces invalid states, improves cache locality, and simplifies serialization while maintaining safety without shared pointers.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=ShSGHb65f3M>

## Community discussion

Top comments from developers on daily.dev.

**@miniporo** · 0 upvotes

> Waiting for full session.

## Similar posts on daily.dev

- [Looking at binary trees in C\+\+](https://daily.dev/posts/looking-at-binary-trees-in-c--wv5th7mq2) · Meeting C\+\+ · 3 upvotes · 0 comments

---

Tags: [#c++](https://daily.dev/tags/c++), [#data-structures](https://daily.dev/tags/data-structures), [#performance](https://daily.dev/tags/performance)

[View this post on daily.dev](https://daily.dev/posts/anton-s-lesson-on-state-management-in-c--lkal1i9ui)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Anton’s Lesson on State Management in C++","url":"https://daily.dev/posts/anton-s-lesson-on-state-management-in-c--lkal1i9ui","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/anton-s-lesson-on-state-management-in-c--lkal1i9ui"},"datePublished":"2026-02-07T17:21:51.435Z","dateModified":"2026-03-15T03:56:23.859Z","description":"A detailed walkthrough of implementing cache-friendly state management in C++ using \"large arrays of things\" instead of traditional object-oriented...","image":"https://i.ytimg.com/vi/ShSGHb65f3M/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/ShSGHb65f3M/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Game Engineering Podcast","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Game Engineering Podcast","logo":"https://media.daily.dev/image/upload/s--8NEw2a0s--/f_auto/v1735917032/logos/game_eng_podcast","url":"https://daily.dev/sources/game_eng_podcast"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/anton-s-lesson-on-state-management-in-c--lkal1i9ui","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"c++,data-structures,performance","timeRequired":"PT141M","video":{"@type":"VideoObject","name":"Anton’s Lesson on State Management in C++","description":"A detailed walkthrough of implementing cache-friendly state management in C++ using \"large arrays of things\" instead of traditional object-oriented...","thumbnailUrl":"https://i.ytimg.com/vi/ShSGHb65f3M/sddefault.jpg","uploadDate":"2026-02-07T17:21:51.435Z","duration":"PT141M","url":"https://api.daily.dev/r/LKAL1i9uI","embedUrl":"https://www.youtube.com/embed/ShSGHb65f3M"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Game Engineering Podcast","item":"https://daily.dev/sources/game_eng_podcast"},{"@type":"ListItem","position":3,"name":"Anton’s Lesson on State Management in C++"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/anton-s-lesson-on-state-management-in-c--lkal1i9ui","comment":[{"@type":"Comment","text":"Waiting for full session.","datePublished":"2026-02-10T14:54:06.959Z","url":"https://daily.dev/posts/LKAL1i9uI#c-0EPaeIfLa","author":{"@type":"Person","name":"Mini Poro","url":"https://daily.dev/miniporo","image":"https://lh3.googleusercontent.com/a/ACg8ocKXM9TqUUIYwlcaVeQMNLClDe6pJFWjSR2lIQ-wKtqx-1WC3A=s96-c"}}]}
```

