Skip to content

Memory Perspective

Data Structure carry information. If you don't know data structure, you only know 1/3 of the programming.

Template

Fields

Aspects

The layout of a type is[^1] :

  • size

  • alignment

  • relative offsets of its fields

Prompt

, explain the memory layout of it with example.

Perspective

Fro performance, measure measure, which means invest early on tools is a good advice.

Tools

Refs

[^1]: Type Layout

[^2]: How do you think about Rust’s memory model?