The mixer doesn't need to know what the track is called
I separated the 16 bytes a mixer uses from the 112 used by its editor. I measured both layouts in Rust and checked the result voice by voice.

Machine translation. Read the original in Español
In this article
You rename a track once. Maybe twice, if you're the kind of person who ends up calling it “Good vocal final for real”. Meanwhile, the mixer keeps advancing the phase and gain block after block. Why should it have to step past the name every time it looks for the next voice?
My problem with certain object-oriented programming starts with a perfectly reasonable class called Pista. You give it the name, the color, and everything that makes sound, you add a method actualizar() and the diagram looks gorgeous. What's hard to see in the drawing is how many bytes away one gain is from the next. So I counted them.
The two lines that repeat
I put together a small program in Rust. Four 32-bit integers per voice for phase, step, gain, and ramp. Another 112 bytes per row represent the editing data. I fed it 262,144 voices, far more than I'd ever open in a music session. It's a synthetic control loop. Not a single note comes out of this.
voice.phase = voice.phase.wrapping_add(voice.step);
voice.gain += voice.ramp;
I wrote two versions with those same lines. In the first, the sound and editing data share a row. In the second, I stored the voices together in one vector and the metadata in another. The four sound fields stay together because all four are needed on every iteration.
32 MiB of data. Two ways to visit them
| With 262,144 voices | Voice and editing in one row | Voice and editing separated |
|---|---|---|
| Distance between the starts of two voices | 128 bytes | 16 bytes |
| Required alignment of the row traversed by the loop | 4 bytes | 4 bytes |
| Size of the vector visited by the loop | 32 MiB | 4 MiB |
| Editing data retained | Inside those 32 MiB | 28 MiB in another vector |
Look at the second row. The alignment is identical in both versions. What changes is where the voice I'll need right after lands. In a 64-byte cache line starting at the beginning of a compact voice, four whole voices fit. In the original layout I advance 128 bytes every time I want to read another 16. That much I can read off the diagram. How much traffic it generates on the machine also depends on placement, prefetching, and writes.
I also tried adding #[repr(align(64))] to the compact voice. It grew to 64 bytes and required an alignment of 64 bytes. Where four voices used to fit, now only one does. That might be useful if I have several threads writing to neighboring data and getting in each other's way. In this loop it would cost me four times the space to fix a problem I haven't even seen.
What the stopwatch showed here
I used Rust 1.100.0 on Windows x86-64, with optimization level 3 and the native instructions of an Intel Core i7-12700H. I warmed up both runs and took nine pairs of measurements, alternating which one went first. Each timing includes 48 passes over all voices. I excluded allocation, warm-up, and the field-by-field check that the results matched.
| Time for 48 passes | Median | Lowest and highest observed |
|---|---|---|
| 128-byte rows | 73.153 ms | 55.358–121.979 ms |
| 16-byte voices | 8.188 ms | 6.547–9.784 ms |
Between the best and worst runs of the large rows there is more than a factor of two. Even with that swing, the worst of the compact runs finished in 9.784 ms while the best of the large ones took 55.358. What I measured was the entire loop. To divide the credit between cache, bandwidth, and vectorization I'd have to look at hardware counters and the generated code. I left the program, the nine pairs of timings, and the build recipe in case you want to run it on your machine. When reading the benchmark it helps to know what it guarantees black_box.
Rust is still the one I care for most
A Vec takes care of allocating and freeing. I choose what goes inside. I can write a Vec<Box<Pista>> that is perfectly safe and spend the audio block chasing pointers. There the compiler will happily let me do something foolish.
Separating the data also gives me homework. If I delete or reorder tracks in the editor, I have to preserve the relationship between each voice and its metadata. I can use stable identifiers or apply the same index change to both vectors. That's a mapping I'd test before trusting the mix.
That's why I distinguish data-driven from data-oriented. The first lets me decide the mixer's routing from a table. The second forces me to look at what the machine touches when traversing them. The talk by Mike Acton goes straight to that second question. I can have the entire session configured from a file and still haul 32 MiB around to do four calculations. Let the musician call the track whatever they want. The mixer already knows where to find the gain.